Skip to content

Commit 3ac90ec

Browse files
committed
Fix test breakage
1 parent 3acf4a2 commit 3ac90ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/bench/shootout-k-nucleotide-pipes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn find(mm: HashMap<~[u8], uint>, key: ~str) -> uint {
6969
// given a map, increment the counter for a key
7070
fn update_freq(mm: HashMap<~[u8], uint>, key: &[u8]) {
7171
let key = vec::slice(key, 0, key.len());
72-
mm.insert_with(key, 1, |v,v1| { v+v1 });
72+
mm.update(key, 1, |v,v1| { v+v1 });
7373
}
7474

7575
// given a ~[u8], for each window call a function

src/test/bench/shootout-k-nucleotide.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn find(mm: HashMap<~[u8], uint>, key: ~str) -> uint {
6666
// given a map, increment the counter for a key
6767
fn update_freq(mm: HashMap<~[u8], uint>, key: &[u8]) {
6868
let key = vec::slice(key, 0, key.len());
69-
mm.insert_with(key, 1, |v,v1| { v+v1 });
69+
mm.update(key, 1, |v,v1| { v+v1 });
7070
}
7171

7272
// given a ~[u8], for each window call a function

0 commit comments

Comments
 (0)