about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-06 23:36:02 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-06 23:36:02 +0530
commite5f25244f14e9c67198226e0b6ac45f4ffdf349b (patch)
treec4e97f3009e50930aa8a645c911c8f1aff65ba01 /src
parent1a2b60267526c3b550ef9dda23ab94e4b6ba16f2 (diff)
downloadrust-e5f25244f14e9c67198226e0b6ac45f4ffdf349b.tar.gz
rust-e5f25244f14e9c67198226e0b6ac45f4ffdf349b.zip
More libcollections fixes
Diffstat (limited to 'src')
-rw-r--r--src/libstd/collections/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/collections/mod.rs b/src/libstd/collections/mod.rs
index 6e645422111..a167dd65e67 100644
--- a/src/libstd/collections/mod.rs
+++ b/src/libstd/collections/mod.rs
@@ -299,15 +299,15 @@
 //! #### Counting the number of times each character in a string occurs
 //!
 //! ```
-//! use std::collections::btree_map::{BTreeMap, Occupied, Vacant};
+//! use std::collections::btree_map::{BTreeMap, Entry};
 //!
 //! let mut count = BTreeMap::new();
 //! let message = "she sells sea shells by the sea shore";
 //!
 //! for c in message.chars() {
 //!     match count.entry(c) {
-//!         Vacant(entry) => { entry.insert(1u); },
-//!         Occupied(mut entry) => *entry.get_mut() += 1,
+//!         Entry::Vacant(entry) => { entry.insert(1u); },
+//!         Entry::Occupied(mut entry) => *entry.get_mut() += 1,
 //!     }
 //! }
 //!