From a04cb8ebb7e034e3ecc655cab9e3ec5f415f2cf6 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 4 Sep 2012 14:36:12 -0700 Subject: [PATCH] Fix broken test case --- src/test/run-pass/non-boolean-pure-fns.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/run-pass/non-boolean-pure-fns.rs b/src/test/run-pass/non-boolean-pure-fns.rs index a2f1775c734..2e2f74e68d4 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) }