about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-09-14 17:15:37 +0200
committerGitHub <noreply@github.com>2016-09-14 17:15:37 +0200
commita89690ec00ca98397183c3ef011f944448098f8b (patch)
tree223b94f42aed89fbfb7fd84a474cf2bb64b45694 /src/librustc_data_structures
parent4476b7b43b2826b6f0e71f4638159f8718c0a440 (diff)
parent5798003438469313c0616270b8b285d9afbb4730 (diff)
downloadrust-a89690ec00ca98397183c3ef011f944448098f8b.tar.gz
rust-a89690ec00ca98397183c3ef011f944448098f8b.zip
Rollup merge of #36396 - athulappadan:Default-docs, r=bluss
Documentation of what Default does for each type

Addresses #36265
I haven't changed the following types due to doubts:

1)src/libstd/ffi/c_str.rs
2)src/libcore/iter/sources.rs
3)src/libcore/hash/mod.rs
4)src/libcore/hash/mod.rs
5)src/librustc/middle/privacy.rs

r? @steveklabnik
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/fnv.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_data_structures/fnv.rs b/src/librustc_data_structures/fnv.rs
index 47f623266f3..ae90c2fac83 100644
--- a/src/librustc_data_structures/fnv.rs
+++ b/src/librustc_data_structures/fnv.rs
@@ -35,6 +35,7 @@ pub fn FnvHashSet<V: Hash + Eq>() -> FnvHashSet<V> {
 pub struct FnvHasher(u64);
 
 impl Default for FnvHasher {
+    /// Creates a `FnvHasher`, with a 64-bit hex initial value.
     #[inline]
     fn default() -> FnvHasher {
         FnvHasher(0xcbf29ce484222325)