mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Rollup merge of #100255 - thedanvail:issue-98861-fix, r=joshtriplett
Adding more verbose documentation for `std::fmt::Write` Attempts to address #98861
This commit is contained in:
commit
da3b89d0bf
@ -119,6 +119,10 @@ pub trait Write {
|
|||||||
///
|
///
|
||||||
/// This function will return an instance of [`Error`] on error.
|
/// This function will return an instance of [`Error`] on error.
|
||||||
///
|
///
|
||||||
|
/// The purpose of std::fmt::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.
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
Loading…
Reference in New Issue
Block a user