diff --git a/src/test/bench/shootout-k-nucleotide-pipes.rs b/src/test/bench/shootout-k-nucleotide-pipes.rs index 2d9eaec7ad1e..4d4730afe44b 100644 --- a/src/test/bench/shootout-k-nucleotide-pipes.rs +++ b/src/test/bench/shootout-k-nucleotide-pipes.rs @@ -75,7 +75,7 @@ fn update_freq(mm: hashmap<~[u8], uint>, key: &[u8]) { // given a ~[u8], for each window call a function // i.e., for "hello" and windows of size four, // run it("hell") and it("ello"), then return "llo" -fn windows_with_carry(bb: ~[const u8], nn: uint, +fn windows_with_carry(bb: &[u8], nn: uint, it: fn(window: &[u8])) -> ~[u8] { let mut ii = 0u; diff --git a/src/test/bench/shootout-k-nucleotide.rs b/src/test/bench/shootout-k-nucleotide.rs index 31f373ff2959..dc64f69a06cf 100644 --- a/src/test/bench/shootout-k-nucleotide.rs +++ b/src/test/bench/shootout-k-nucleotide.rs @@ -73,7 +73,7 @@ fn update_freq(mm: hashmap<~[u8], uint>, key: &[u8]) { // given a ~[u8], for each window call a function // i.e., for "hello" and windows of size four, // run it("hell") and it("ello"), then return "llo" -fn windows_with_carry(bb: ~[const u8], nn: uint, +fn windows_with_carry(bb: &[u8], nn: uint, it: fn(window: &[u8])) -> ~[u8] { let mut ii = 0u;