Skip to content

Commit c1539ab

Browse files
committed
Fix doctest, add now-needed turbofish
1 parent 4b69291 commit c1539ab

File tree

1 file changed

+1
-1
lines changed
  • src/liballoc/collections/btree

1 file changed

+1
-1
lines changed

src/liballoc/collections/btree/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
845845
/// .iter()
846846
/// .map(|&s| (s, 0))
847847
/// .collect();
848-
/// for (_, balance) in map.range_mut("B".."Cheryl") {
848+
/// for (_, balance) in map.range_mut::<str, _>("B".."Cheryl") {
849849
/// *balance += 100;
850850
/// }
851851
/// for (name, balance) in &map {

0 commit comments

Comments
 (0)