Skip to content

Commit 3c8618f

Browse files
committed
Update write! docs: can now import traits as _ to avoid conflicts
1 parent a788650 commit 3c8618f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/macros/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,8 @@ macro_rules! r#try {
460460
/// import the traits qualified so their names do not conflict:
461461
///
462462
/// ```
463-
/// use std::fmt::Write as FmtWrite;
464-
/// use std::io::Write as IoWrite;
463+
/// use std::fmt::Write as _;
464+
/// use std::io::Write as _;
465465
///
466466
/// fn main() -> Result<(), Box<dyn std::error::Error>> {
467467
/// let mut s = String::new();

0 commit comments

Comments
 (0)