From cc2cecb428b4eeb35ffb332d1f878f210a1e3fa3 Mon Sep 17 00:00:00 2001 From: Andres Suarez Date: Tue, 3 Dec 2024 13:45:39 -0500 Subject: [PATCH] Fix anyhow::Ok rustdoc code formatting --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.