Skip to content

Commit

Permalink
Fix doctest, add now-needed turbofish
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfukennyg committed Sep 11, 2019
1 parent 4b69291 commit c1539ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/collections/btree/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
/// .iter()
/// .map(|&s| (s, 0))
/// .collect();
/// for (_, balance) in map.range_mut("B".."Cheryl") {
/// for (_, balance) in map.range_mut::<str, _>("B".."Cheryl") {
/// *balance += 100;
/// }
/// for (name, balance) in &map {
Expand Down

0 comments on commit c1539ab

Please sign in to comment.