File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
branches/snap-stage3/src/libstd/collections/hash Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 38a97becdf3e6a6157f6f7ec2d98ade8d8edc193
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 6814c2f1aa0b214a9d2767283c57446d0b66fa6f
4
+ refs/heads/snap-stage3: 1283044a1a48fae610e7b602e0eb876748c7fb73
5
5
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
Original file line number Diff line number Diff line change @@ -66,17 +66,17 @@ use super::state::HashState;
66
66
/// books.insert("The Great Gatsby");
67
67
///
68
68
/// // Check for a specific one.
69
- /// if !books.contains(&( "The Winds of Winter") ) {
69
+ /// if !books.contains("The Winds of Winter") {
70
70
/// println!("We have {} books, but The Winds of Winter ain't one.",
71
71
/// books.len());
72
72
/// }
73
73
///
74
74
/// // Remove a book.
75
- /// books.remove(& "The Odyssey");
75
+ /// books.remove("The Odyssey");
76
76
///
77
77
/// // Iterate over everything.
78
- /// for book in books.iter() {
79
- /// println!("{}", * book);
78
+ /// for book in & books {
79
+ /// println!("{}", book);
80
80
/// }
81
81
/// ```
82
82
///
@@ -100,7 +100,7 @@ use super::state::HashState;
100
100
/// vikings.insert(Viking { name: "Harald", power: 8 });
101
101
///
102
102
/// // Use derived implementation to print the vikings.
103
- /// for x in vikings.iter() {
103
+ /// for x in & vikings {
104
104
/// println!("{:?}", x);
105
105
/// }
106
106
/// ```
You can’t perform that action at this time.
0 commit comments