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:
commit
980fba7345
@ -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.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user