Fix borrow check errors in k-nucleotide.
This commit is contained in:
parent
6d142c5e25
commit
c918bd01b0
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue