Skip to content

Commit

Permalink
doctest: Put #[bitflags] above #[derive]
Browse files Browse the repository at this point in the history
This is necessary on 1.56.
  • Loading branch information
meithecatte committed Sep 9, 2023
1 parent f64da4b commit b61a59e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,8 @@ where
///
/// ```
/// # use enumflags2::bitflags;
/// #[derive(Clone, Copy, PartialEq, Debug)]
/// #[bitflags]
/// #[derive(Clone, Copy, PartialEq, Debug)]
/// #[repr(u8)]
/// enum MyFlag {
/// A = 1 << 0,
Expand Down

0 comments on commit b61a59e

Please sign in to comment.