diff --git a/src/test/run-pass/non-boolean-pure-fns.rs b/src/test/run-pass/non-boolean-pure-fns.rs index a2f1775c734f..2e2f74e68d47 100644 --- a/src/test/run-pass/non-boolean-pure-fns.rs +++ b/src/test/run-pass/non-boolean-pure-fns.rs @@ -3,7 +3,7 @@ use std; import std::list::*; pure fn pure_length_go(ls: @List, 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(ls: @List) -> uint { pure_length_go(ls, 0u) }