Skip to content

Commit

Permalink
Unrolled build for rust-lang#112959
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rust-timer authored Sep 28, 2023
2 parents 46da927 + e2f7032 commit b630245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ pub trait Write {
///
/// # Errors
///
/// This function will return an instance of [`Error`] on error.
/// This function will return an instance of [`std::fmt::Error`][Error] on error.
///
/// The purpose of std::fmt::Error is to abort the formatting operation when the underlying
/// The purpose of that error is to abort the formatting operation when the underlying
/// destination encounters some error preventing it from accepting more text; it should
/// generally be propagated rather than handled, at least when implementing formatting traits.
///
Expand Down

0 comments on commit b630245

Please sign in to comment.