Skip to content

Commit

Permalink
Avoid useless comparison in doctest
Browse files Browse the repository at this point in the history
A `false` literal demonstrates the point better.
  • Loading branch information
meithecatte committed Sep 9, 2023
1 parent d767919 commit f64da4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ where
/// }
///
/// let mut state = MyFlag::A | MyFlag::C;
/// state.set(MyFlag::A | MyFlag::B, 3 > 5);
/// state.set(MyFlag::A | MyFlag::B, false);
///
/// // Because the condition was false, both
/// // `A` and `B` are removed from the set
Expand Down

0 comments on commit f64da4b

Please sign in to comment.