Skip to content

Commit

Permalink
Clean up HashSet Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
killercup committed May 3, 2015
1 parent 6814c2f commit 1283044
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/libstd/collections/hash/set.rs
Expand Up @@ -66,17 +66,17 @@ use super::state::HashState;
/// books.insert("The Great Gatsby");
///
/// // Check for a specific one.
/// if !books.contains(&("The Winds of Winter")) {
/// if !books.contains("The Winds of Winter") {
/// println!("We have {} books, but The Winds of Winter ain't one.",
/// books.len());
/// }
///
/// // Remove a book.
/// books.remove(&"The Odyssey");
/// books.remove("The Odyssey");
///
/// // Iterate over everything.
/// for book in books.iter() {
/// println!("{}", *book);
/// for book in &books {
/// println!("{}", book);
/// }
/// ```
///
Expand All @@ -100,7 +100,7 @@ use super::state::HashState;
/// vikings.insert(Viking { name: "Harald", power: 8 });
///
/// // Use derived implementation to print the vikings.
/// for x in vikings.iter() {
/// for x in &vikings {
/// println!("{:?}", x);
/// }
/// ```
Expand Down

0 comments on commit 1283044

Please sign in to comment.