Fix macro syntax error

This commit is contained in:
Ilija Tovilo 2019-07-21 12:37:42 +02:00 committed by Who? Me?!
parent 18c466252e
commit 831a469050
1 changed files with 2 additions and 2 deletions

View File

@ -19,11 +19,11 @@ whenever we refer to the "example _definition_", we mean the following:
macro_rules! printer { macro_rules! printer {
(print $mvar:ident) => { (print $mvar:ident) => {
println!("{}", $mvar); println!("{}", $mvar);
} };
(print twice $mvar:ident) => { (print twice $mvar:ident) => {
println!("{}", $mvar); println!("{}", $mvar);
println!("{}", $mvar); println!("{}", $mvar);
} };
} }
``` ```