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