We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab6b651 commit 3bf24d6Copy full SHA for 3bf24d6
src/libtest/stats.rs
@@ -438,7 +438,7 @@ pub fn write_boxplot<W: Writer, T: Float + Show + FromPrimitive>(
438
439
/// Returns a HashMap with the number of occurrences of every element in the
440
/// sequence that the iterator exposes.
441
-pub fn freq_count<T: Iterator<U>, U: Eq+Hash>(mut iter: T) -> hash_map::HashMap<U, uint> {
+pub fn freq_count<T: Iterator<Item=U>, U: Eq+Hash>(mut iter: T) -> hash_map::HashMap<U, uint> {
442
let mut map: hash_map::HashMap<U,uint> = hash_map::HashMap::new();
443
for elem in iter {
444
match map.entry(elem) {
0 commit comments