File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
branches/beta/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 @@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
29
29
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
30
30
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
31
31
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32
- refs/heads/beta: 6814c2f1aa0b214a9d2767283c57446d0b66fa6f
32
+ refs/heads/beta: 1283044a1a48fae610e7b602e0eb876748c7fb73
33
33
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
34
34
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35
35
refs/heads/tmp: 579e31929feff51dcaf8d444648eff8de735f91a
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