Skip to content

Commit c918bd0

Browse files
committed
Fix borrow check errors in k-nucleotide.
1 parent 6d142c5 commit c918bd0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn update_freq(mm: hashmap<~[u8], uint>, key: &[u8]) {
7575
// given a ~[u8], for each window call a function
7676
// i.e., for "hello" and windows of size four,
7777
// run it("hell") and it("ello"), then return "llo"
78-
fn windows_with_carry(bb: ~[const u8], nn: uint,
78+
fn windows_with_carry(bb: &[u8], nn: uint,
7979
it: fn(window: &[u8])) -> ~[u8] {
8080
let mut ii = 0u;
8181

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn update_freq(mm: hashmap<~[u8], uint>, key: &[u8]) {
7373
// given a ~[u8], for each window call a function
7474
// i.e., for "hello" and windows of size four,
7575
// run it("hell") and it("ello"), then return "llo"
76-
fn windows_with_carry(bb: ~[const u8], nn: uint,
76+
fn windows_with_carry(bb: &[u8], nn: uint,
7777
it: fn(window: &[u8])) -> ~[u8] {
7878
let mut ii = 0u;
7979

0 commit comments

Comments
 (0)