File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -171,11 +171,11 @@ pub trait BitFlag: Copy + Clone + 'static + _internal::RawBitFlags {
171
171
///
172
172
/// use enumflags2::BitFlag;
173
173
///
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);
179
179
/// ```
180
180
#[ inline]
181
181
fn all ( ) -> BitFlags < Self > {
@@ -185,8 +185,8 @@ pub trait BitFlag: Copy + Clone + 'static + _internal::RawBitFlags {
185
185
/// Create a `BitFlags` if the raw value provided does not contain
186
186
/// any illegal flags.
187
187
///
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
190
190
/// some situations.
191
191
///
192
192
/// ```
You can’t perform that action at this time.
0 commit comments