From 0cc06e8afda419d136e010a456ca1734253b4ee3 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Thu, 16 Nov 2023 16:10:19 +0000 Subject: [PATCH] docs: `RoaringTreemap::select` returns `None` if `n >= len()` --- src/treemap/inherent.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/treemap/inherent.rs b/src/treemap/inherent.rs index aad5f564..f14fa659 100644 --- a/src/treemap/inherent.rs +++ b/src/treemap/inherent.rs @@ -385,7 +385,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 ///