Skip to content

Commit b630245

Browse files
authored
Unrolled build for rust-lang#112959
Rollup merge of rust-lang#112959 - tbu-:pr_fmt_error_wording, r=dtolnay Change the wording in `std::fmt::Write::write_str` Refer to the error instead of expanding its name.
2 parents 46da927 + e2f7032 commit b630245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/fmt/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ pub trait Write {
112112
///
113113
/// # Errors
114114
///
115-
/// This function will return an instance of [`Error`] on error.
115+
/// This function will return an instance of [`std::fmt::Error`][Error] on error.
116116
///
117-
/// The purpose of std::fmt::Error is to abort the formatting operation when the underlying
117+
/// The purpose of that error is to abort the formatting operation when the underlying
118118
/// destination encounters some error preventing it from accepting more text; it should
119119
/// generally be propagated rather than handled, at least when implementing formatting traits.
120120
///

0 commit comments

Comments
 (0)