Skip to content

Commit a9300cc

Browse files
Rollup merge of #39105 - istankovic:patch-1, r=sfackler
libcollections: btree/map: fix typos
2 parents 630b9e1 + b50fb24 commit a9300cc

File tree

1 file changed

+2
-2
lines changed
  • src/libcollections/btree

1 file changed

+2
-2
lines changed

src/libcollections/btree/map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
656656
}
657657

658658
/// Constructs a double-ended iterator over a sub-range of elements in the map.
659-
/// The simplest way is to use the range synax `min..max`, thus `range(min..max)` will
659+
/// The simplest way is to use the range syntax `min..max`, thus `range(min..max)` will
660660
/// yield elements from min (inclusive) to max (exclusive).
661661
/// The range may also be entered as `(Bound<T>, Bound<T>)`, so for example
662662
/// `range((Excluded(4), Included(10)))` will yield a left-exclusive, right-inclusive
@@ -748,7 +748,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
748748
}
749749

750750
/// Constructs a mutable double-ended iterator over a sub-range of elements in the map.
751-
/// The simplest way is to use the range synax `min..max`, thus `range(min..max)` will
751+
/// The simplest way is to use the range syntax `min..max`, thus `range(min..max)` will
752752
/// yield elements from min (inclusive) to max (exclusive).
753753
/// The range may also be entered as `(Bound<T>, Bound<T>)`, so for example
754754
/// `range((Excluded(4), Included(10)))` will yield a left-exclusive, right-inclusive

0 commit comments

Comments
 (0)