Rollup merge of #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.
This commit is contained in:
Matthias Krüger 2023-09-28 09:14:05 +02:00 committed by GitHub
commit 980fba7345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
///