Skip to content

Commit

Permalink
Update write! docs: can now import traits as _ to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtriplett committed Aug 24, 2022
1 parent a788650 commit 3c8618f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/macros/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ macro_rules! r#try {
/// import the traits qualified so their names do not conflict:
///
/// ```
/// use std::fmt::Write as FmtWrite;
/// use std::io::Write as IoWrite;
/// use std::fmt::Write as _;
/// use std::io::Write as _;
///
/// fn main() -> Result<(), Box<dyn std::error::Error>> {
/// let mut s = String::new();
Expand Down

0 comments on commit 3c8618f

Please sign in to comment.