From 3491793be04de31788af2f5986ea287e2fb83f12 Mon Sep 17 00:00:00 2001 From: Flier Lu Date: Wed, 13 Mar 2019 15:31:23 +0800 Subject: [PATCH] fix example --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a71c773..bb00e9a 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,6 @@ fasthash = "0.4" ### `hash` and `hash_with_seed` function ```rust -extern crate fasthash; - use fasthash::*; let h = city::hash64("hello world"); @@ -43,7 +41,8 @@ use std::collections::HashSet; use fasthash::spooky::SpookyHash128; -let mut set = HashSet::with_hasher(SpookyHash128 {}); +let mut set = HashSet::with_hasher(SpookyHash128); + set.insert(2); ```