@@ -31,7 +31,7 @@ default. SipHash, however, is [not very fast] at hashing small keys. As shown,
3131however, the [ FNV hash algorithm] is much faster for these size of inputs. This
3232means that by switching hash algorithms for types like ` HashMap<usize, V> `
3333there can be a significant speedup so long as the loss of DOS protection is
34- acceptable.
34+ acceptable.
3535
3636[ Siphash ] : https://en.wikipedia.org/wiki/SipHash
3737[ not very fast ] : http://cglab.ca/~abeinges/blah/hash-rs/
@@ -43,16 +43,16 @@ create a `HashMap` via:
4343``` rust
4444extern crate fnv;
4545
46- use std :: collections :: HashMap ;
47- use std :: hash :: BuildHasherDefault ;
48- use fnv :: FnvHasher ;
49-
50- type MyHasher = BuildHasherDefault <FnvHasher >;
51-
46+ use std :: collections :: HashMap ;
47+ use std :: hash :: BuildHasherDefault ;
48+ use fnv :: FnvHasher ;
49+
50+ type MyHasher = BuildHasherDefault <FnvHasher >;
51+
5252fn main () {
5353 let mut map : HashMap <_ , _ , MyHasher > = HashMap :: default ();
54- map . insert (1 , " Hello" );
55- map . insert (2 , " , world!" );
54+ map . insert (1 , " Hello" );
55+ map . insert (2 , " , world!" );
5656 println! (" {:?}" , map );
5757}
5858```
@@ -94,8 +94,8 @@ There were a few small updates to Cargo:
9494 profiles to pull in dev-dependencies during testing and such.
9595
9696
97- [ improvement to build scripts] : https://github.com/rust-lang/cargo/pull/2279
98- [ modification to the ` cargo rustc ` subcommand] : https://github.com/rust-lang/cargo/pull/2224
97+ [ improvement to build scripts ] : https://github.com/rust-lang/cargo/pull/2279
98+ [ modification to the `cargo rustc` subcommand ] : https://github.com/rust-lang/cargo/pull/2224
9999
100100### Contributors to 1.7
101101
0 commit comments