about summary refs log tree commit diff
path: root/src/libstd/tri.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/tri.rs')
-rw-r--r--src/libstd/tri.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/tri.rs b/src/libstd/tri.rs
index 7cc749429ce..5835dbf8c42 100644
--- a/src/libstd/tri.rs
+++ b/src/libstd/tri.rs
@@ -137,7 +137,7 @@ Function: from_str
 Parse logic value from `s`
 */
 pure fn from_str(s: str) -> t {
-    alt s {
+    alt check s {
       "unknown" { unknown }
       "true" { tri::true }
       "false" { tri::false }
@@ -151,7 +151,7 @@ Convert `v` into a string
 */
 pure fn to_str(v: t) -> str {
     // FIXME replace with consts as soon as that works
-    alt v {
+    alt check v {
       0u8 { "unknown" }
       1u8 { "true" }
       2u8 { "false" }