Permalink
Browse files

Fix borrow check errors in k-nucleotide.

  • Loading branch information...
1 parent 6d142c5 commit c918bd01b0aef638cf99d877b0666ef4d00749db @eholk eholk committed Jul 26, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/test/bench/shootout-k-nucleotide-pipes.rs
  2. +1 −1 src/test/bench/shootout-k-nucleotide.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;
@@ -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;

0 comments on commit c918bd0

Please sign in to comment.