Skip to content

Commit 4e35721

Browse files
committed
---
yaml --- r: 207988 b: refs/heads/snap-stage3 c: 1283044 h: refs/heads/master v: v3
1 parent c30f3a6 commit 4e35721

File tree

2 files changed

+6
-6
lines changed
  • branches/snap-stage3/src/libstd/collections/hash

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 38a97becdf3e6a6157f6f7ec2d98ade8d8edc193
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 6814c2f1aa0b214a9d2767283c57446d0b66fa6f
4+
refs/heads/snap-stage3: 1283044a1a48fae610e7b602e0eb876748c7fb73
55
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/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)