From d08b443fffb1181d8d45ae5d061412f202dd4118 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Mon, 2 May 2011 16:24:09 -0700 Subject: Revert "Use different syntax for checks that matter to typestate" This reverts commit aa25f22f197682de3b18fc4c8ba068d1feda220f. It broke stage2, not sure why yet. --- src/lib/_uint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/_uint.rs') diff --git a/src/lib/_uint.rs b/src/lib/_uint.rs index 2d373cdd..97108c90 100644 --- a/src/lib/_uint.rs +++ b/src/lib/_uint.rs @@ -56,7 +56,7 @@ fn to_str(uint num, uint radix) -> str { auto n = num; - assert (0u < radix && radix <= 16u); + check (0u < radix && radix <= 16u); fn digit(uint n) -> char { alt (n) { case (0u) { ret '0'; } -- cgit v1.2.3