Skip to content

Commit

Permalink
Rollup merge of #100255 - thedanvail:issue-98861-fix, r=joshtriplett
Browse files Browse the repository at this point in the history
Adding more verbose documentation for `std::fmt::Write`

Attempts to address #98861
  • Loading branch information
Dylan-DPC authored Aug 12, 2022
2 parents caac670 + ee8a01f commit da3b89d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/core/src/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ pub trait Write {
///
/// 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
///
/// ```
Expand Down

0 comments on commit da3b89d

Please sign in to comment.