Skip to content

Commit

Permalink
fix(doc-tests): fix some documentation tests and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Aug 7, 2018
1 parent ade10b2 commit 313a320
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
//! ### Example: Creation by `FromIterator`
//!
//! ```
//! # use string_interner::StringInterner;
//! # use string_interner::DefaultStringInterner;
//! let interner = vec!["Elephant", "Tiger", "Horse", "Tiger"]
//! .into_iter()
//! .collect::<StringInterner>();
//! .collect::<DefaultStringInterner>();
//! ```
//!
//! ### Example: Look-up
Expand All @@ -42,10 +42,10 @@
//! ### Example: Iteration
//!
//! ```
//! # use string_interner::StringInterner;
//! # use string_interner::DefaultStringInterner;
//! let interner = vec!["Earth", "Water", "Fire", "Air"]
//! .into_iter()
//! .collect::<StringInterner>();
//! .collect::<DefaultStringInterner>();
//! for (sym, str) in interner {
//! // iteration code here!
//! }
Expand Down

0 comments on commit 313a320

Please sign in to comment.