diff --git a/src/treemap/inherent.rs b/src/treemap/inherent.rs index e7bd1d06..98ef7831 100644 --- a/src/treemap/inherent.rs +++ b/src/treemap/inherent.rs @@ -386,7 +386,7 @@ impl RoaringTreemap { + iter.map(|(_, bitmap)| bitmap.len()).sum::() } - /// Returns the `n`th integer in the set or `None` if `n <= len()` + /// Returns the `n`th integer in the set or `None` if `n >= len()` /// /// # Examples ///