File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -268,12 +268,13 @@ pub trait BitFlag: Copy + Clone + 'static + _internal::RawBitFlags {
268268 ///
269269 /// use enumflags2::BitFlag;
270270 ///
271- /// unsafe {
272- /// let from_bits = MyFlag::from_bits_unchecked(0b011);
273- /// assert_eq!(from_bits.contains(MyFlag::One), true);
274- /// assert_eq!(from_bits.contains(MyFlag::Two), true);
275- /// assert_eq!(from_bits.contains(MyFlag::Three), false);
276- /// }
271+ /// let from_bits = unsafe {
272+ /// MyFlag::from_bits_unchecked(0b011)
273+ /// };
274+ ///
275+ /// assert_eq!(from_bits.contains(MyFlag::One), true);
276+ /// assert_eq!(from_bits.contains(MyFlag::Two), true);
277+ /// assert_eq!(from_bits.contains(MyFlag::Three), false);
277278 /// ```
278279 ///
279280 /// # Safety
You can’t perform that action at this time.
0 commit comments