diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-07-29 10:30:34 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-07-29 10:30:34 -0400 |
| commit | a368adf8e5bd1166b9fd915ed1db674872f5a1bc (patch) | |
| tree | 0bff3f548092867b8673da6d82aeaee05ce666fb /src/libcore/hash | |
| parent | 6fec7b7854b0598c82af68587ba163e406c3e17c (diff) | |
| parent | ba5fcb726fb88cc8393f48c9f46ba03fcadf0511 (diff) | |
Rollup merge of #27326 - steveklabnik:doc_show_use, r=Gankro
In spirit with https://internals.rust-lang.org/t/should-we-keep-including-obvious-imports-in-code-examples/2217, show the feature flags we're using in examples. (also one instance of 'use')
Diffstat (limited to 'src/libcore/hash')
| -rw-r--r-- | src/libcore/hash/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcore/hash/mod.rs b/src/libcore/hash/mod.rs index a660cf0cf2d..75b7208d66b 100644 --- a/src/libcore/hash/mod.rs +++ b/src/libcore/hash/mod.rs @@ -16,7 +16,8 @@ //! # Examples //! //! ```rust -//! # #![feature(hash_default)] +//! #![feature(hash_default)] +//! //! use std::hash::{hash, Hash, SipHasher}; //! //! #[derive(Hash)] @@ -36,7 +37,8 @@ //! the trait `Hash`: //! //! ```rust -//! # #![feature(hash_default)] +//! #![feature(hash_default)] +//! //! use std::hash::{hash, Hash, Hasher, SipHasher}; //! //! struct Person { |
