File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
branches/try/src/libstd/collections Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: b4c965ee803a4521d8b4575f634e036f93e408f3
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5
- refs/heads/try: 1a2b60267526c3b550ef9dda23ab94e4b6ba16f2
5
+ refs/heads/try: e5f25244f14e9c67198226e0b6ac45f4ffdf349b
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change 299
299
//! #### Counting the number of times each character in a string occurs
300
300
//!
301
301
//! ```
302
- //! use std::collections::btree_map::{BTreeMap, Occupied, Vacant };
302
+ //! use std::collections::btree_map::{BTreeMap, Entry };
303
303
//!
304
304
//! let mut count = BTreeMap::new();
305
305
//! let message = "she sells sea shells by the sea shore";
306
306
//!
307
307
//! for c in message.chars() {
308
308
//! match count.entry(c) {
309
- //! Vacant(entry) => { entry.insert(1u); },
310
- //! Occupied(mut entry) => *entry.get_mut() += 1,
309
+ //! Entry:: Vacant(entry) => { entry.insert(1u); },
310
+ //! Entry:: Occupied(mut entry) => *entry.get_mut() += 1,
311
311
//! }
312
312
//! }
313
313
//!
You can’t perform that action at this time.
0 commit comments