about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-04 14:36:12 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-04 14:36:21 -0700
commita04cb8ebb7e034e3ecc655cab9e3ec5f415f2cf6 (patch)
tree6e79b59f087de3f9b59f34f3308c4390062f03c2
parent0684c065a986b5c9f9c1dc6e0ebf50c3fd502c36 (diff)
downloadrust-a04cb8ebb7e034e3ecc655cab9e3ec5f415f2cf6.tar.gz
rust-a04cb8ebb7e034e3ecc655cab9e3ec5f415f2cf6.zip
Fix broken test case
-rw-r--r--src/test/run-pass/non-boolean-pure-fns.rs2
1 files changed, 1 insertions, 1 deletions
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<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) }