Skip to content

Commit c8960a5

Browse files
committed
Sorting comment
1 parent dae485b commit c8960a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

version-ranges/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ impl<V: Ord> FromIterator<(Bound<V>, Bound<V>)> for Ranges<V> {
891891
// 3. There is at least one version between two segments: By `union`.
892892

893893
// For this implementation, we choose to only build a single smallvec and insert or remove
894-
// in it, instead of e.g. collecting the segments into one smallvec, sorting that and then
894+
// in it, instead of e.g. collecting the segments into a sorted datastructure first and then
895895
// construction the second smallvec without shifting.
896896
let mut segments: SmallVec<[Interval<V>; 1]> = SmallVec::new();
897897

0 commit comments

Comments
 (0)