about summary refs log tree commit diff
diff options
context:
space:
mode:
authordjzin <noreply@github.com>2016-12-25 09:37:35 +0000
committerdjzin <noreply@github.com>2017-01-14 16:51:51 +0000
commitcaf4164a2589e733df1c4a2822ded8820788a2bf (patch)
tree3f369f6693eda601d812675db786c1620a4f3492
parent2979b0ff789c4805f3a3415fa0b4ac9515a9c286 (diff)
downloadrust-caf4164a2589e733df1c4a2822ded8820788a2bf.tar.gz
rust-caf4164a2589e733df1c4a2822ded8820788a2bf.zip
add type annotations to doctest
-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 {