File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3232//! ```
3333//!
3434//! In `build.rs`:
35+ //!
3536//! ```
3637//! extern crate string_cache_codegen;
3738//!
4748//! ```
4849//!
4950//! In `lib.rs`:
51+ //!
5052//! ```ignore
5153//! extern crate string_cache;
5254//!
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";
9697//! // Atom<Static> to intern a new string.
9798//! interned_stuff.push(DefaultAtom::from(word));
9899//! }
100+ //! # }
99101//! ```
100102//!
101103
You can’t perform that action at this time.
0 commit comments