mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Fix broken test case
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
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) }
|
||||
|
||||
Reference in New Issue
Block a user