diff options
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 4117faa1a6b..0ad8adf3cc7 100644 --- a/doc/tutorial-macros.md +++ b/doc/tutorial-macros.md @@ -216,7 +216,7 @@ Now consider code like the following: ~~~~ # enum t1 { good_1(t2, uint), bad_1 }; -# pub struct t2 { body: t3 } +# struct t2 { body: t3 } # enum t3 { good_2(uint), bad_2}; # fn f(x: t1) -> uint { match x { @@ -262,7 +262,7 @@ macro_rules! biased_match ( ) # enum t1 { good_1(t2, uint), bad_1 }; -# pub struct t2 { body: t3 } +# struct t2 { body: t3 } # enum t3 { good_2(uint), bad_2}; # fn f(x: t1) -> uint { biased_match!((x) ~ (good_1(g1, val)) else { return 0 }; @@ -364,7 +364,7 @@ macro_rules! biased_match ( # enum t1 { good_1(t2, uint), bad_1 }; -# pub struct t2 { body: t3 } +# struct t2 { body: t3 } # enum t3 { good_2(uint), bad_2}; # fn f(x: t1) -> uint { biased_match!( |
