We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8852dc3 commit cc2cecbCopy full SHA for cc2cecb
src/lib.rs
@@ -627,11 +627,11 @@ pub trait Context<T, E>: context::private::Sealed {
627
F: FnOnce() -> C;
628
}
629
630
-/// Equivalent to Ok::<_, anyhow::Error>(value).
+/// Equivalent to `Ok::<_, anyhow::Error>(value)`.
631
///
632
-/// This simplifies creation of an anyhow::Result in places where type inference
633
-/// cannot deduce the `E` type of the result — without needing to write
634
-/// `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)`.
635
636
/// One might think that `anyhow::Result::Ok(value)` would work in such cases
637
/// but it does not.
0 commit comments