Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRusterror handling thiserror anyhowSingle-choice MCQ

What does .context() add when used with anyhow here, and what is the type of the value bound after ??

use anyhow::{Context, Result}; use std::fs; fn load(path: &str) -> Result<String> { let data = fs::read_to_string(path) .context("failed to read config")?; Ok(data) }