@@ -173,7 +173,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
173173 /// use std::collections::BTreeMap;
174174 ///
175175 /// let mut a = BTreeMap::new();
176- /// a.insert(1u , "a");
176+ /// a.insert(1 , "a");
177177 /// a.clear();
178178 /// assert!(a.is_empty());
179179 /// ```
@@ -203,7 +203,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
203203 /// use std::collections::BTreeMap;
204204 ///
205205 /// let mut map = BTreeMap::new();
206- /// map.insert(1u , "a");
206+ /// map.insert(1 , "a");
207207 /// assert_eq!(map.get(&1), Some(&"a"));
208208 /// assert_eq!(map.get(&2), None);
209209 /// ```
@@ -235,7 +235,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
235235 /// use std::collections::BTreeMap;
236236 ///
237237 /// let mut map = BTreeMap::new();
238- /// map.insert(1u , "a");
238+ /// map.insert(1 , "a");
239239 /// assert_eq!(map.contains_key(&1), true);
240240 /// assert_eq!(map.contains_key(&2), false);
241241 /// ```
@@ -255,7 +255,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
255255 /// use std::collections::BTreeMap;
256256 ///
257257 /// let mut map = BTreeMap::new();
258- /// map.insert(1u , "a");
258+ /// map.insert(1 , "a");
259259 /// match map.get_mut(&1) {
260260 /// Some(x) => *x = "b",
261261 /// None => (),
@@ -317,7 +317,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
317317 /// use std::collections::BTreeMap;
318318 ///
319319 /// let mut map = BTreeMap::new();
320- /// assert_eq!(map.insert(37u , "a"), None);
320+ /// assert_eq!(map.insert(37 , "a"), None);
321321 /// assert_eq!(map.is_empty(), false);
322322 ///
323323 /// map.insert(37, "b");
@@ -429,7 +429,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
429429 /// use std::collections::BTreeMap;
430430 ///
431431 /// let mut map = BTreeMap::new();
432- /// map.insert(1u , "a");
432+ /// map.insert(1 , "a");
433433 /// assert_eq!(map.remove(&1), Some("a"));
434434 /// assert_eq!(map.remove(&1), None);
435435 /// ```
@@ -1170,16 +1170,16 @@ impl<K, V> BTreeMap<K, V> {
11701170 /// use std::collections::BTreeMap;
11711171 ///
11721172 /// let mut map = BTreeMap::new();
1173- /// map.insert(1u , "a");
1174- /// map.insert(2u , "b");
1175- /// map.insert(3u , "c");
1173+ /// map.insert(1 , "a");
1174+ /// map.insert(2 , "b");
1175+ /// map.insert(3 , "c");
11761176 ///
11771177 /// for (key, value) in map.iter() {
11781178 /// println!("{}: {}", key, value);
11791179 /// }
11801180 ///
11811181 /// let (first_key, first_value) = map.iter().next().unwrap();
1182- /// assert_eq!((*first_key, *first_value), (1u , "a"));
1182+ /// assert_eq!((*first_key, *first_value), (1 , "a"));
11831183 /// ```
11841184 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
11851185 pub fn iter ( & self ) -> Iter < K , V > {
@@ -1203,9 +1203,9 @@ impl<K, V> BTreeMap<K, V> {
12031203 /// use std::collections::BTreeMap;
12041204 ///
12051205 /// let mut map = BTreeMap::new();
1206- /// map.insert("a", 1u );
1207- /// map.insert("b", 2u );
1208- /// map.insert("c", 3u );
1206+ /// map.insert("a", 1 );
1207+ /// map.insert("b", 2 );
1208+ /// map.insert("c", 3 );
12091209 ///
12101210 /// // add 10 to the value if the key isn't "a"
12111211 /// for (key, value) in map.iter_mut() {
@@ -1235,9 +1235,9 @@ impl<K, V> BTreeMap<K, V> {
12351235 /// use std::collections::BTreeMap;
12361236 ///
12371237 /// let mut map = BTreeMap::new();
1238- /// map.insert(1u , "a");
1239- /// map.insert(2u , "b");
1240- /// map.insert(3u , "c");
1238+ /// map.insert(1 , "a");
1239+ /// map.insert(2 , "b");
1240+ /// map.insert(3 , "c");
12411241 ///
12421242 /// for (key, value) in map.into_iter() {
12431243 /// println!("{}: {}", key, value);
@@ -1264,11 +1264,11 @@ impl<K, V> BTreeMap<K, V> {
12641264 /// use std::collections::BTreeMap;
12651265 ///
12661266 /// let mut a = BTreeMap::new();
1267- /// a.insert(1u , "a");
1268- /// a.insert(2u , "b");
1267+ /// a.insert(1 , "a");
1268+ /// a.insert(2 , "b");
12691269 ///
12701270 /// let keys: Vec<usize> = a.keys().cloned().collect();
1271- /// assert_eq!(keys, vec![1u ,2,]);
1271+ /// assert_eq!(keys, vec![1 ,2,]);
12721272 /// ```
12731273 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
12741274 pub fn keys < ' a > ( & ' a self ) -> Keys < ' a , K , V > {
@@ -1286,8 +1286,8 @@ impl<K, V> BTreeMap<K, V> {
12861286 /// use std::collections::BTreeMap;
12871287 ///
12881288 /// let mut a = BTreeMap::new();
1289- /// a.insert(1u , "a");
1290- /// a.insert(2u , "b");
1289+ /// a.insert(1 , "a");
1290+ /// a.insert(2 , "b");
12911291 ///
12921292 /// let values: Vec<&str> = a.values().cloned().collect();
12931293 /// assert_eq!(values, vec!["a","b"]);
@@ -1309,7 +1309,7 @@ impl<K, V> BTreeMap<K, V> {
13091309 ///
13101310 /// let mut a = BTreeMap::new();
13111311 /// assert_eq!(a.len(), 0);
1312- /// a.insert(1u , "a");
1312+ /// a.insert(1 , "a");
13131313 /// assert_eq!(a.len(), 1);
13141314 /// ```
13151315 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -1324,7 +1324,7 @@ impl<K, V> BTreeMap<K, V> {
13241324 ///
13251325 /// let mut a = BTreeMap::new();
13261326 /// assert!(a.is_empty());
1327- /// a.insert(1u , "a");
1327+ /// a.insert(1 , "a");
13281328 /// assert!(!a.is_empty());
13291329 /// ```
13301330 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -1474,13 +1474,13 @@ impl<K: Ord, V> BTreeMap<K, V> {
14741474 /// use std::collections::Bound::{Included, Unbounded};
14751475 ///
14761476 /// let mut map = BTreeMap::new();
1477- /// map.insert(3u , "a");
1478- /// map.insert(5u , "b");
1479- /// map.insert(8u , "c");
1477+ /// map.insert(3 , "a");
1478+ /// map.insert(5 , "b");
1479+ /// map.insert(8 , "c");
14801480 /// for (&key, &value) in map.range(Included(&4), Included(&8)) {
14811481 /// println!("{}: {}", key, value);
14821482 /// }
1483- /// assert_eq!(Some((&5u , &"b")), map.range(Included(&4), Unbounded).next());
1483+ /// assert_eq!(Some((&5 , &"b")), map.range(Included(&4), Unbounded).next());
14841484 /// ```
14851485 #[ unstable( feature = "collections" ,
14861486 reason = "matches collection reform specification, waiting for dust to settle" ) ]
@@ -1539,7 +1539,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
15391539 /// }
15401540 /// }
15411541 ///
1542- /// assert_eq!(count["a"], 3u );
1542+ /// assert_eq!(count["a"], 3 );
15431543 /// ```
15441544 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
15451545 pub fn entry ( & mut self , mut key : K ) -> Entry < K , V > {
0 commit comments