Skip to content
Myr

Merge pull request #398 from zertosh/ok_doc_format

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix anyhow::Ok rustdoc code formatting

authored by David Tolnay · committed by GitHub · parents 8852dc3, cc2cecb · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:src/lib.rs+4 added-4 removed
625 unmodified lines
626 C: Display + Send + Sync + 'static,627 F: FnOnce() -> C;628}629630/// Equivalent to Ok::<_, anyhow::Error>(value).630/// Equivalent to `Ok::<_, anyhow::Error>(value)`.631///632/// This simplifies creation of an anyhow::Result in places where type inference633/// cannot deduce the `E` type of the result &mdash; without needing to write634/// `Ok::<_, anyhow::Error>(value)`.632/// This simplifies creation of an `anyhow::Result` in places where type633/// inference cannot deduce the `E` type of the result &mdash; without needing634/// to write`Ok::<_, anyhow::Error>(value)`.635///636/// One might think that `anyhow::Result::Ok(value)` would work in such cases637/// but it does not.638///
94 unmodified lines