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 {
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 /// ```
You can’t perform that action at this time.
0 commit comments