Commit 1045a98b authored by Jack Wrenn's avatar Jack Wrenn
Browse files

Wrong type on `new` constructor.

parent 76082105
[package]
name = "frequency-hashmap"
version = "1.0.0"
version = "1.1.0"
authors = ["Jack Wrenn <me@jswrenn.com>"]
license = "MIT"
readme = "README.md"
......
......@@ -94,7 +94,7 @@ impl<T, N, S> HashMapFrequency<T, N, S>
/// Creates an empty `HashMapFrequency`, a frequency counter backed
/// by a HashMap.
#[inline]
pub fn new() -> HashMap<T, S> {
pub fn new() -> HashMapFrequency<T, N, S> {
Default::default()
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment