Skip to content

Commit

Permalink
Merge pull request #398 from zertosh/ok_doc_format
Browse files Browse the repository at this point in the history
Fix anyhow::Ok rustdoc code formatting
  • Loading branch information
dtolnay authored Dec 3, 2024
2 parents 8852dc3 + cc2cecb commit 2081692
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,11 +627,11 @@ pub trait Context<T, E>: 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 &mdash; 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 &mdash; 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.
Expand Down

0 comments on commit 2081692

Please sign in to comment.