Skip to content

Commit 2bb85b2

Browse files
committed
doc: fix sentence structure in std::fmt
1 parent f517527 commit 2bb85b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/liballoc/fmt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
//! Additionally, the return value of this function is [`fmt::Result`] which is a
153153
//! type alias of [`Result`]`<(), `[`std::fmt::Error`]`>`. Formatting implementations
154154
//! should ensure that they propagate errors from the [`Formatter`][`Formatter`] (e.g., when
155-
//! calling [`write!`]) however, they should never return errors spuriously. That
155+
//! calling [`write!`]). However, they should never return errors spuriously. That
156156
//! is, a formatting implementation must and may only return an error if the
157157
//! passed-in [`Formatter`] returns an error. This is because, contrary to what
158158
//! the function signature might suggest, string formatting is an infallible

0 commit comments

Comments
 (0)