From 7ba47b9332eb38ec8fdaa707a84c08a494e7b4a2 Mon Sep 17 00:00:00 2001 From: Rimi Kanokawa Date: Mon, 22 Jul 2024 14:43:46 -0700 Subject: [PATCH] Show the enum definition for the example in `enum_set_complement!` where it kinda matters. --- enumset/src/macros.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/enumset/src/macros.rs b/enumset/src/macros.rs index 4f750c7..9504ece 100644 --- a/enumset/src/macros.rs +++ b/enumset/src/macros.rs @@ -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_set!(Enum::B | Enum::C); /// const CONST_SET: EnumSet = enum_set_complement!(SET); /// assert_eq!(CONST_SET, Enum::A | Enum::D);