From 3dc691cd2ba26b5482f11990963130e89dba2829 Mon Sep 17 00:00:00 2001 From: Lymia Aluysia Date: Mon, 30 Mar 2020 06:42:14 -0700 Subject: [PATCH] Update documentation for change to EnumSet::insert. --- enumset/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enumset/src/lib.rs b/enumset/src/lib.rs index b04aa1c..7ce0bd8 100644 --- a/enumset/src/lib.rs +++ b/enumset/src/lib.rs @@ -358,9 +358,9 @@ impl EnumSet { /// Adds a value to this set. /// - /// If the set did not have this value present, `false` is returned. + /// If the set did not have this value present, `true` is returned. /// - /// If the set did have this value present, `true` is returned. + /// If the set did have this value present, `false` is returned. pub fn insert(&mut self, value: T) -> bool { let contains = !self.contains(value); self.__enumset_underlying = self.__enumset_underlying | Self::mask(value.enum_into_u8()); -- 2.44.0