Skip to content

Commit f64da4b

Browse files
committed
Avoid useless comparison in doctest
A `false` literal demonstrates the point better.
1 parent d767919 commit f64da4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ where
669669
/// }
670670
///
671671
/// let mut state = MyFlag::A | MyFlag::C;
672-
/// state.set(MyFlag::A | MyFlag::B, 3 > 5);
672+
/// state.set(MyFlag::A | MyFlag::B, false);
673673
///
674674
/// // Because the condition was false, both
675675
/// // `A` and `B` are removed from the set

0 commit comments

Comments
 (0)