Skip to content

Commit 7bee362

Browse files
ronnodasmeithecatte
authored andcommitted
copy-paste typo
1 parent fef3404 commit 7bee362

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ pub trait BitFlag: Copy + Clone + 'static + _internal::RawBitFlags {
171171
///
172172
/// use enumflags2::BitFlag;
173173
///
174-
/// let empty = MyFlag::all();
175-
/// assert!(empty.is_all());
176-
/// assert_eq!(empty.contains(MyFlag::One), true);
177-
/// assert_eq!(empty.contains(MyFlag::Two), true);
178-
/// assert_eq!(empty.contains(MyFlag::Three), true);
174+
/// let all = MyFlag::all();
175+
/// assert!(all.is_all());
176+
/// assert_eq!(all.contains(MyFlag::One), true);
177+
/// assert_eq!(all.contains(MyFlag::Two), true);
178+
/// assert_eq!(all.contains(MyFlag::Three), true);
179179
/// ```
180180
#[inline]
181181
fn all() -> BitFlags<Self> {
@@ -185,8 +185,8 @@ pub trait BitFlag: Copy + Clone + 'static + _internal::RawBitFlags {
185185
/// Create a `BitFlags` if the raw value provided does not contain
186186
/// any illegal flags.
187187
///
188-
/// This is a convenience reexport of [`BitFlags::from_bits`]. It can be called
189-
/// with `MyFlag::from_bits(bits)`, thus bypassing the need for type hints in
188+
/// This is a convenience reexport of [`BitFlags::from_bits`]. It can be called
189+
/// with `MyFlag::from_bits(bits)`, thus bypassing the need for type hints in
190190
/// some situations.
191191
///
192192
/// ```

0 commit comments

Comments
 (0)