Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
grishasobol committed Dec 15, 2023
1 parent 7c577a8 commit 097c8da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/numerated/src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ macro_rules! debug_assert_impl {
/// assert_eq!(voids, vec![i32::MIN..=0, 4..=4, 8..=i32::MAX]);
///
/// // Difference iterator: iterate over intervals from `tree` which are not in `other_tree`.
/// let other_tree: IntervalsTree<i32> = [3, 4, 5, 7, 8, 9].iter().collect();
/// let other_tree: IntervalsTree<i32> = [3, 4, 5, 7, 8, 9].into_iter().collect();
/// let difference: Vec<_> = tree.difference(&other_tree).map(RangeInclusive::from).collect();
/// assert_eq!(difference, vec![1..=2, 6..=6]);
/// ```
Expand Down

0 comments on commit 097c8da

Please sign in to comment.