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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue