doc: fix sentence structure in std::fmt
This commit is contained in:
parent
f51752774b
commit
2bb85b236a
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@
|
|||
//! Additionally, the return value of this function is [`fmt::Result`] which is a
|
||||
//! type alias of [`Result`]`<(), `[`std::fmt::Error`]`>`. Formatting implementations
|
||||
//! should ensure that they propagate errors from the [`Formatter`][`Formatter`] (e.g., when
|
||||
//! calling [`write!`]) however, they should never return errors spuriously. That
|
||||
//! calling [`write!`]). However, they should never return errors spuriously. That
|
||||
//! is, a formatting implementation must and may only return an error if the
|
||||
//! passed-in [`Formatter`] returns an error. This is because, contrary to what
|
||||
//! the function signature might suggest, string formatting is an infallible
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue