Skip to content

Commit ae937cc

Browse files
committedAug 24, 2022
Clarify comment to fit as _ better
1 parent 589db1f commit ae937cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎library/core/src/macros/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,8 @@ macro_rules! r#try {
457457
///
458458
/// A module can import both `std::fmt::Write` and `std::io::Write` and call `write!` on objects
459459
/// implementing either, as objects do not typically implement both. However, the module must
460-
/// import the traits qualified so their names do not conflict:
460+
/// avoid conflict between the trait names, such as by importing them as `_` or otherwise renaming
461+
/// them:
461462
///
462463
/// ```
463464
/// use std::fmt::Write as _;

0 commit comments

Comments
 (0)
Please sign in to comment.