Skip to content

Commit

Permalink
Show the enum definition for the example in enum_set_complement! wh…
Browse files Browse the repository at this point in the history
…ere it kinda matters.
  • Loading branch information
Lymia committed Jul 22, 2024
1 parent 6a9a676 commit 7ba47b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion enumset/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ macro_rules! enum_set_intersection {
///
/// ```rust
/// # use enumset::*;
/// # #[derive(EnumSetType, Debug)] enum Enum { A, B, C, D }
/// #[derive(EnumSetType, Debug)]
/// enum Enum { A, B, C, D }
///
/// const SET: EnumSet<Enum> = enum_set!(Enum::B | Enum::C);
/// const CONST_SET: EnumSet<Enum> = enum_set_complement!(SET);
/// assert_eq!(CONST_SET, Enum::A | Enum::D);
Expand Down

0 comments on commit 7ba47b9

Please sign in to comment.