File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -119,12 +119,9 @@ pub trait Write {
119
119
///
120
120
/// This function will return an instance of [`Error`] on error.
121
121
///
122
- /// Though it is possible for implementors of this trait to return an error, at the time
123
- /// of writing these docs, no implementation of [`std::fmt::Write`] in the standard library
124
- /// returns such an error.
125
- ///
126
- /// When working with external crates, it is advised to check the implementation of this
127
- /// trait and anticipate any possible [`Error`]s.
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.
128
125
///
129
126
/// # Examples
130
127
///
You can’t perform that action at this time.
0 commit comments