mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Fix test breakage
This commit is contained in:
parent
3acf4a2a9c
commit
3ac90ec9f8
@ -69,7 +69,7 @@ fn find(mm: HashMap<~[u8], uint>, key: ~str) -> uint {
|
||||
// given a map, increment the counter for a key
|
||||
fn update_freq(mm: HashMap<~[u8], uint>, key: &[u8]) {
|
||||
let key = vec::slice(key, 0, key.len());
|
||||
mm.insert_with(key, 1, |v,v1| { v+v1 });
|
||||
mm.update(key, 1, |v,v1| { v+v1 });
|
||||
}
|
||||
|
||||
// given a ~[u8], for each window call a function
|
||||
|
@ -66,7 +66,7 @@ fn find(mm: HashMap<~[u8], uint>, key: ~str) -> uint {
|
||||
// given a map, increment the counter for a key
|
||||
fn update_freq(mm: HashMap<~[u8], uint>, key: &[u8]) {
|
||||
let key = vec::slice(key, 0, key.len());
|
||||
mm.insert_with(key, 1, |v,v1| { v+v1 });
|
||||
mm.update(key, 1, |v,v1| { v+v1 });
|
||||
}
|
||||
|
||||
// given a ~[u8], for each window call a function
|
||||
|
Loading…
Reference in New Issue
Block a user