Skip to content

Commit

Permalink
Fix broken links
Browse files Browse the repository at this point in the history
Co-authored-by: konsti <[email protected]>
  • Loading branch information
Eh2406 and konstin authored Nov 28, 2023
1 parent 5cd1dc9 commit 8f7ef55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,12 @@ fn valid_segment<T: PartialOrd>(start: &Bound<T>, end: &Bound<T>) -> bool {
}

/// group adjacent versions locations
/// ```text
/// [None, 3, 6, 7, None] -> [(3, 7)]
/// [3, 6, 7, None] -> [(None, 7)]
/// [3, 6, 7] -> [(None, None)]
/// [None, 1, 4, 7, None, None, None, 8, None, 9] -> [(1, 7), (8, 8), (9, None)]
/// ```
fn group_adjacent_locations(
mut locations: impl Iterator<Item = Option<usize>>,
) -> impl Iterator<Item = (Option<usize>, Option<usize>)> {
Expand Down

0 comments on commit 8f7ef55

Please sign in to comment.