Skip to content

Commit dd8e172

Browse files
committed
---
yaml --- r: 206386 b: refs/heads/beta c: 1283044 h: refs/heads/master v: v3
1 parent 2fd0c45 commit dd8e172

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3030
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3131
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32-
refs/heads/beta: 6814c2f1aa0b214a9d2767283c57446d0b66fa6f
32+
refs/heads/beta: 1283044a1a48fae610e7b602e0eb876748c7fb73
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3535
refs/heads/tmp: 579e31929feff51dcaf8d444648eff8de735f91a

branches/beta/src/libstd/collections/hash/set.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ use super::state::HashState;
6666
/// books.insert("The Great Gatsby");
6767
///
6868
/// // Check for a specific one.
69-
/// if !books.contains(&("The Winds of Winter")) {
69+
/// if !books.contains("The Winds of Winter") {
7070
/// println!("We have {} books, but The Winds of Winter ain't one.",
7171
/// books.len());
7272
/// }
7373
///
7474
/// // Remove a book.
75-
/// books.remove(&"The Odyssey");
75+
/// books.remove("The Odyssey");
7676
///
7777
/// // Iterate over everything.
78-
/// for book in books.iter() {
79-
/// println!("{}", *book);
78+
/// for book in &books {
79+
/// println!("{}", book);
8080
/// }
8181
/// ```
8282
///
@@ -100,7 +100,7 @@ use super::state::HashState;
100100
/// vikings.insert(Viking { name: "Harald", power: 8 });
101101
///
102102
/// // Use derived implementation to print the vikings.
103-
/// for x in vikings.iter() {
103+
/// for x in &vikings {
104104
/// println!("{:?}", x);
105105
/// }
106106
/// ```

0 commit comments

Comments
 (0)