about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libcollections/btree/map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/btree/map.rs b/src/libcollections/btree/map.rs
index 87465190a69..5b23fd13e51 100644
--- a/src/libcollections/btree/map.rs
+++ b/src/libcollections/btree/map.rs
@@ -763,7 +763,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
     /// let mut map: BTreeMap<&str, i32> = ["Alice", "Bob", "Carol", "Cheryl"].iter()
     ///                                                                       .map(|&s| (s, 0))
     ///                                                                       .collect();
-    /// for (_, balance) in map.range_mut((Included("B"), Excluded("Cheryl"))) {
+    /// for (_, balance) in map.range_mut::<str, _>((Included("B"), Excluded("Cheryl"))) {
     ///     *balance += 100;
     /// }
     /// for (name, balance) in &map {