about summary refs log tree commit diff
path: root/src/libcore/hash
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-07-29 10:30:34 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-07-29 10:30:34 -0400
commita368adf8e5bd1166b9fd915ed1db674872f5a1bc (patch)
tree0bff3f548092867b8673da6d82aeaee05ce666fb /src/libcore/hash
parent6fec7b7854b0598c82af68587ba163e406c3e17c (diff)
parentba5fcb726fb88cc8393f48c9f46ba03fcadf0511 (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.rs6
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 {