Fix macro syntax error
This commit is contained in:
parent
18c466252e
commit
831a469050
|
|
@ -19,11 +19,11 @@ whenever we refer to the "example _definition_", we mean the following:
|
|||
macro_rules! printer {
|
||||
(print $mvar:ident) => {
|
||||
println!("{}", $mvar);
|
||||
}
|
||||
};
|
||||
(print twice $mvar:ident) => {
|
||||
println!("{}", $mvar);
|
||||
println!("{}", $mvar);
|
||||
}
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue