Skip to content

Commit 9e76cbb

Browse files
committed
Fix ascii art alignment
1 parent fe7e010 commit 9e76cbb

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

version-ranges/src/lib.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -917,40 +917,40 @@ impl<V: Ord + Debug> FromIterator<(Bound<V>, Bound<V>)> for Ranges<V> {
917917

918918
match (previous_overlapping, next_overlapping) {
919919
(true, true) => {
920-
// previous: |-------|
921-
// segment: |-------|
922-
// following: |-----|
920+
// previous: |------|
921+
// segment: |------|
922+
// following: |------|
923923
//
924-
// final: |--------------------|
924+
// final: |---------------|
925925
// We merge all three segments into one, which is effectively removing one of
926926
// two previously inserted and changing the bounds on the other.
927927
let following = segments.remove(insertion_point);
928928
segments[insertion_point - 1].1 = following.1;
929929
}
930930
(true, false) => {
931-
// previous: |-----|
932-
// segment: |-----|
933-
// following: |-----|
931+
// previous: |------|
932+
// segment: |------|
933+
// following: |------|
934934
//
935-
// final: |---------| |-----|
935+
// final: |----------| |------|
936936
// We can reuse the existing element by extending it.
937937
segments[insertion_point - 1].1 = segment.1;
938938
}
939939
(false, true) => {
940-
// previous: |-----|
941-
// segment: |-----|
942-
// following: |-----|
940+
// previous: |------|
941+
// segment: |------|
942+
// following: |------|
943943
//
944-
// final: |-----| |---------|
944+
// final: |------| |---------|
945945
// We can reuse the existing element by extending it.
946946
segments[insertion_point].0 = segment.0;
947947
}
948948
(false, false) => {
949-
// previous: |-----|
950-
// segment: |-----|
951-
// following: |-----|
949+
// previous: |------|
950+
// segment: |------|
951+
// following: |------|
952952
//
953-
// final: |-----| |-----| |-----|
953+
// final: |------| |------| |------|
954954
segments.insert(insertion_point, segment);
955955
}
956956
}

0 commit comments

Comments
 (0)