Format BtreeMap::range_mut example
This commit is contained in:
parent
8aa926729e
commit
1224e0197a
@ -853,7 +853,8 @@ impl<K: Ord, V> BTreeMap<K, V> {
|
||||
/// ```
|
||||
/// use std::collections::BTreeMap;
|
||||
///
|
||||
/// let mut map: BTreeMap<&str, i32> = ["Alice", "Bob", "Carol", "Cheryl"].iter()
|
||||
/// let mut map: BTreeMap<&str, i32> = ["Alice", "Bob", "Carol", "Cheryl"]
|
||||
/// .iter()
|
||||
/// .map(|&s| (s, 0))
|
||||
/// .collect();
|
||||
/// for (_, balance) in map.range_mut("B".."Cheryl") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user