diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-10-22 08:10:34 -0700 | 
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-10-22 08:10:34 -0700 | 
| commit | 3ed18bdd42e10f57890befe015f6861d52429e12 (patch) | |
| tree | 90cd6971b78e2f4bd61a3c8ed4b246d4dc592b78 /doc/tutorial-macros.md | |
| parent | 7aa32f7d8ed12572217aeadc222472b8687ae00d (diff) | |
| download | rust-3ed18bdd42e10f57890befe015f6861d52429e12.tar.gz rust-3ed18bdd42e10f57890befe015f6861d52429e12.zip | |
Remove old logging from the tutorial
Diffstat (limited to 'doc/tutorial-macros.md')
| -rw-r--r-- | doc/tutorial-macros.md | 6 | 
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; | 
