Skip to content

Commit 9b41702

Browse files
author
Richard Dodd
committed
Try fix examples
1 parent 19cbfa9 commit 9b41702

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
//! ```
3333
//!
3434
//! In `build.rs`:
35+
//!
3536
//! ```
3637
//! extern crate string_cache_codegen;
3738
//!
@@ -47,6 +48,7 @@
4748
//! ```
4849
//!
4950
//! In `lib.rs`:
51+
//!
5052
//! ```ignore
5153
//! extern crate string_cache;
5254
//!
@@ -71,11 +73,10 @@
7173
//! ## No compile-time atoms
7274
//!
7375
//! ```
74-
//! extern crate string_cache;
75-
//!
76+
//! # extern crate string_cache;
7677
//! use string_cache::DefaultAtom;
7778
//!
78-
//!
79+
//! # fn main() {
7980
//! let mut interned_stuff = Vec::new();
8081
//! let text = "here is a sentence of text that will be tokenised and
8182
//! interned and some repeated tokens is of text and";
@@ -96,6 +97,7 @@
9697
//! // Atom<Static> to intern a new string.
9798
//! interned_stuff.push(DefaultAtom::from(word));
9899
//! }
100+
//! # }
99101
//! ```
100102
//!
101103

0 commit comments

Comments
 (0)