]> git.lizzy.rs Git - enumset.git/commitdiff
Forbid missing docs.
authorLymia Aluysia <lymia@lymiahugs.com>
Wed, 29 Nov 2017 18:25:40 +0000 (12:25 -0600)
committerLymia Aluysia <lymia@lymiahugs.com>
Wed, 29 Nov 2017 18:25:40 +0000 (12:25 -0600)
src/lib.rs

index 842573f42bc132aea4f1f1536c1e9bcf9d56ee50..94e4d663817fed4944d3f27b56d31835c6f1d45c 100644 (file)
@@ -1,5 +1,6 @@
 #![cfg_attr(all(test, feature = "nightly"), feature(i128, i128_type))]
 #![cfg_attr(all(feature = "nightly"), feature(const_fn, allow_internal_unstable))]
+#![forbid(missing_docs)]
 
 //! A library for defining enums that can be used in compact bit sets.
 //!
@@ -196,6 +197,7 @@ impl <T : EnumSetType> EnumSet<T> {
         self.__enumset_underlying &= !other.__enumset_underlying
     }
 
+    /// Creates an iterator over the values in this set.
     pub fn iter(&self) -> EnumSetIter<T> {
         EnumSetIter(*self, 0)
     }