Skip to content

Commit c2bc67b

Browse files
committed
Trim trailing whitespace
1 parent bdb95b7 commit c2bc67b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

_posts/2016-03-02-Rust-1.7.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ default. SipHash, however, is [not very fast] at hashing small keys. As shown,
3131
however, the [FNV hash algorithm] is much faster for these size of inputs. This
3232
means that by switching hash algorithms for types like `HashMap<usize, V>`
3333
there 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
4444
extern 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+
5252
fn 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

Comments
 (0)