1
Fork 0

Fix borrow check errors in k-nucleotide.

This commit is contained in:
Eric Holk 2012-07-26 14:40:00 -07:00
parent 6d142c5e25
commit c918bd01b0
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;