Skip to content

Commit

Permalink
fix: use Treemap instead of Bitmap
Browse files Browse the repository at this point in the history
  • Loading branch information
domodwyer committed Dec 6, 2020
1 parent 0fc7a10 commit 4077d19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/treemap/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl RoaringTreemap {
/// use roaring::RoaringTreemap;
/// use std::iter::FromIterator;
///
/// let bitmap = (1..3).collect::<RoaringBitmap>();
/// let bitmap = (1..3).collect::<RoaringTreemap>();
/// let mut iter = bitmap.iter();
///
/// assert_eq!(iter.next(), Some(1));
Expand All @@ -155,7 +155,7 @@ impl RoaringTreemap {
/// use roaring::{RoaringBitmap, RoaringTreemap};
/// use std::iter::FromIterator;
///
/// let original = (0..6000).collect::<RoaringBitmap>();
/// let original = (0..6000).collect::<RoaringTreemap>();
/// let mut bitmaps = original.bitmaps();
///
/// assert_eq!(bitmaps.next(), Some((0, &(0..6000).collect::<RoaringBitmap>())));
Expand All @@ -175,7 +175,7 @@ impl RoaringTreemap {
/// use roaring::RoaringTreemap;
/// use std::iter::FromIterator;
///
/// let original = (0..6000).collect::<RoaringBitmap>();
/// let original = (0..6000).collect::<RoaringTreemap>();
/// let clone = RoaringTreemap::from_bitmaps(original.bitmaps().map(|(p, b)| (p, b.clone())));
///
/// assert_eq!(clone, original);
Expand Down

0 comments on commit 4077d19

Please sign in to comment.