Skip to content

Commit dbea6ac

Browse files
authored
Rollup merge of rust-lang#100255 - thedanvail:issue-98861-fix, r=joshtriplett
Adding more verbose documentation for `std::fmt::Write` Attempts to address rust-lang#98861
2 parents 511eda1 + ee8a01f commit dbea6ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/core/src/fmt/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ pub trait Write {
119119
///
120120
/// This function will return an instance of [`Error`] on error.
121121
///
122+
/// The purpose of std::fmt::Error is to abort the formatting operation when the underlying
123+
/// destination encounters some error preventing it from accepting more text; it should
124+
/// generally be propagated rather than handled, at least when implementing formatting traits.
125+
///
122126
/// # Examples
123127
///
124128
/// ```

0 commit comments

Comments
 (0)