Skip to content

Commit 2081692

Browse files
authored
Merge pull request #398 from zertosh/ok_doc_format
Fix anyhow::Ok rustdoc code formatting
2 parents 8852dc3 + cc2cecb commit 2081692

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -627,11 +627,11 @@ pub trait Context<T, E>: context::private::Sealed {
627627
F: FnOnce() -> C;
628628
}
629629

630-
/// Equivalent to Ok::<_, anyhow::Error>(value).
630+
/// Equivalent to `Ok::<_, anyhow::Error>(value)`.
631631
///
632-
/// This simplifies creation of an anyhow::Result in places where type inference
633-
/// cannot deduce the `E` type of the result &mdash; without needing to write
634-
/// `Ok::<_, anyhow::Error>(value)`.
632+
/// This simplifies creation of an `anyhow::Result` in places where type
633+
/// inference cannot deduce the `E` type of the result &mdash; without needing
634+
/// to write`Ok::<_, anyhow::Error>(value)`.
635635
///
636636
/// One might think that `anyhow::Result::Ok(value)` would work in such cases
637637
/// but it does not.

0 commit comments

Comments
 (0)