diff options
| author | P1start <rewi-github@whanau.org> | 2014-08-04 22:48:39 +1200 |
|---|---|---|
| committer | P1start <rewi-github@whanau.org> | 2014-08-19 17:22:18 +1200 |
| commit | f2aa88ca0676249d9c44bb6a2e59cd2b1cdd9c9a (patch) | |
| tree | 50acf564d76caea6531e76609eb44df7671eed70 /src/libcollections/hash/mod.rs | |
| parent | eaf810a219b136fff67e75840ad3c5efde9ae1e5 (diff) | |
| download | rust-f2aa88ca0676249d9c44bb6a2e59cd2b1cdd9c9a.tar.gz rust-f2aa88ca0676249d9c44bb6a2e59cd2b1cdd9c9a.zip | |
A few minor documentation fixes
Diffstat (limited to 'src/libcollections/hash/mod.rs')
| -rw-r--r-- | src/libcollections/hash/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcollections/hash/mod.rs b/src/libcollections/hash/mod.rs index 4ce39a683ae..b867bb7be04 100644 --- a/src/libcollections/hash/mod.rs +++ b/src/libcollections/hash/mod.rs @@ -77,18 +77,18 @@ pub use self::sip::hash as hash; pub mod sip; -/// A trait that represents a hashable type. The `S` type parameter is an -/// abstract hash state that is used by the `Hash` to compute the hash. -/// It defaults to `std::hash::sip::SipState`. +/// A hashable type. The `S` type parameter is an abstract hash state that is +/// used by the `Hash` to compute the hash. It defaults to +/// `std::hash::sip::SipState`. pub trait Hash<S = sip::SipState> { - /// Compute a hash of the value. + /// Computes the hash of a value. fn hash(&self, state: &mut S); } /// A trait that computes a hash for a value. The main users of this trait are /// containers like `HashMap`, which need a generic way hash multiple types. pub trait Hasher<S> { - /// Compute a hash of the value. + /// Compute the hash of a value. fn hash<T: Hash<S>>(&self, value: &T) -> u64; } |
