Skip to content

Commit e9bd1f2

Browse files
committed
2 parents c4371c8 + 1224e01 commit e9bd1f2

File tree

1 file changed

+4
-3
lines changed
  • src/liballoc/collections/btree

1 file changed

+4
-3
lines changed

src/liballoc/collections/btree/map.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -853,9 +853,10 @@ impl<K: Ord, V> BTreeMap<K, V> {
853853
/// ```
854854
/// use std::collections::BTreeMap;
855855
///
856-
/// let mut map: BTreeMap<&str, i32> = ["Alice", "Bob", "Carol", "Cheryl"].iter()
857-
/// .map(|&s| (s, 0))
858-
/// .collect();
856+
/// let mut map: BTreeMap<&str, i32> = ["Alice", "Bob", "Carol", "Cheryl"]
857+
/// .iter()
858+
/// .map(|&s| (s, 0))
859+
/// .collect();
859860
/// for (_, balance) in map.range_mut("B".."Cheryl") {
860861
/// *balance += 100;
861862
/// }

0 commit comments

Comments
 (0)