Skip to content

Commit b50fb24

Browse files
authored
libcollections: btree/map: fix typos
1 parent 2d0baa7 commit b50fb24

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)