Skip to content

Commit 3491793

Browse files
committed
fix example
1 parent 436432f commit 3491793

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ fasthash = "0.4"
1111
### `hash` and `hash_with_seed` function
1212

1313
```rust
14-
extern crate fasthash;
15-
1614
use fasthash::*;
1715

1816
let h = city::hash64("hello world");
@@ -43,7 +41,8 @@ use std::collections::HashSet;
4341

4442
use fasthash::spooky::SpookyHash128;
4543

46-
let mut set = HashSet::with_hasher(SpookyHash128 {});
44+
let mut set = HashSet::with_hasher(SpookyHash128);
45+
4746
set.insert(2);
4847
```
4948

0 commit comments

Comments
 (0)