about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-07-24 11:42:06 -0700
committerGitHub <noreply@github.com>2016-07-24 11:42:06 -0700
commit9316ae515e2f8f3f497fb4f1559910c1eef2433d (patch)
tree55141cdef2ce60b07578873cd760ec87ad91a263 /src/libcore
parent2c50f4e484d1c871538ee99032ec2986177b8062 (diff)
parent52c293c2bb3be96f3a8cc4043037e90e5ed4dda8 (diff)
downloadrust-9316ae515e2f8f3f497fb4f1559910c1eef2433d.tar.gz
rust-9316ae515e2f8f3f497fb4f1559910c1eef2433d.zip
Auto merge of #35006 - Manishearth:rollup, r=Manishearth
Rollup of 7 pull requests

- Successful merges: #34965, #34972, #34975, #34976, #34977, #34988, #34989
- Failed merges:
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/hash/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libcore/hash/mod.rs b/src/libcore/hash/mod.rs
index 9e3f7a4a84a..27fdbd38301 100644
--- a/src/libcore/hash/mod.rs
+++ b/src/libcore/hash/mod.rs
@@ -234,6 +234,16 @@ pub trait BuildHasher {
     type Hasher: Hasher;
 
     /// Creates a new hasher.
+    ///
+    /// # Examples
+    ///
+    /// ```
+    /// use std::collections::hash_map::RandomState;
+    /// use std::hash::BuildHasher;
+    ///
+    /// let s = RandomState::new();
+    /// let new_s = s.build_hasher();
+    /// ```
     #[stable(since = "1.7.0", feature = "build_hasher")]
     fn build_hasher(&self) -> Self::Hasher;
 }