]> git.lizzy.rs Git - enumset.git/commitdiff
Update documentation for change to EnumSet::insert.
authorLymia Aluysia <lymia@lymiahugs.com>
Mon, 30 Mar 2020 13:42:14 +0000 (06:42 -0700)
committerLymia Aluysia <lymia@lymiahugs.com>
Mon, 30 Mar 2020 13:42:14 +0000 (06:42 -0700)
enumset/src/lib.rs

index b04aa1cc2a4b2f98ee0de5a8ef1889d42f6af672..7ce0bd8719d38a3d31d3e904e6159f38085bdcdc 100644 (file)
@@ -358,9 +358,9 @@ impl <T : EnumSetType> EnumSet<T> {
 
     /// 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());