diff --git a/src/lib.rs b/src/lib.rs index c6dd4ce..7124eb0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -627,11 +627,11 @@ pub trait Context: context::private::Sealed { F: FnOnce() -> C; } -/// Equivalent to Ok::<_, anyhow::Error>(value). +/// Equivalent to `Ok::<_, anyhow::Error>(value)`. /// -/// This simplifies creation of an anyhow::Result in places where type inference -/// cannot deduce the `E` type of the result — without needing to write -/// `Ok::<_, anyhow::Error>(value)`. +/// This simplifies creation of an `anyhow::Result` in places where type +/// inference cannot deduce the `E` type of the result — without needing +/// to write`Ok::<_, anyhow::Error>(value)`. /// /// One might think that `anyhow::Result::Ok(value)` would work in such cases /// but it does not.