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 {
268
268
///
269
269
/// use enumflags2::BitFlag;
270
270
///
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);
277
278
/// ```
278
279
///
279
280
/// # Safety
You can’t perform that action at this time.
0 commit comments