Fix broken test case
This commit is contained in:
parent
0684c065a9
commit
a04cb8ebb7
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ use std;
|
|||
import std::list::*;
|
||||
|
||||
pure fn pure_length_go<T: copy>(ls: @List<T>, acc: uint) -> uint {
|
||||
match *ls { nil => { acc } Cons(_, tl) => { pure_length_go(tl, acc + 1u) } }
|
||||
match *ls { Nil => { acc } Cons(_, tl) => { pure_length_go(tl, acc + 1u) } }
|
||||
}
|
||||
|
||||
pure fn pure_length<T: copy>(ls: @List<T>) -> uint { pure_length_go(ls, 0u) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue