about summary refs log tree commit diff
path: root/doc/tutorial-macros.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorial-macros.md')
-rw-r--r--doc/tutorial-macros.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/tutorial-macros.md b/doc/tutorial-macros.md
index a70b29f9100..f1f4ade0542 100644
--- a/doc/tutorial-macros.md
+++ b/doc/tutorial-macros.md
@@ -226,7 +226,7 @@ match x {
                 // complicated stuff goes here
                 return result + val;
             },
-            _ => fail2!("Didn't get good_2")
+            _ => fail!("Didn't get good_2")
         }
     }
     _ => return 0 // default value
@@ -268,7 +268,7 @@ macro_rules! biased_match (
 biased_match!((x)       ~ (good_1(g1, val)) else { return 0 };
               binds g1, val )
 biased_match!((g1.body) ~ (good_2(result) )
-                  else { fail2!("Didn't get good_2") };
+                  else { fail!("Didn't get good_2") };
               binds result )
 // complicated stuff goes here
 return result + val;
@@ -369,7 +369,7 @@ macro_rules! biased_match (
 # fn f(x: t1) -> uint {
 biased_match!(
     (x)       ~ (good_1(g1, val)) else { return 0 };
-    (g1.body) ~ (good_2(result) ) else { fail2!("Didn't get good_2") };
+    (g1.body) ~ (good_2(result) ) else { fail!("Didn't get good_2") };
     binds val, result )
 // complicated stuff goes here
 return result + val;