]> git.lizzy.rs Git - enumset.git/blobdiff - enumset/src/lib.rs
Update documentation for change to EnumSet::insert.
[enumset.git] / 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());