We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6026b8b + 89b2c11 commit 811f973Copy full SHA for 811f973
src/macros/variadics.md
@@ -9,12 +9,12 @@ We can extend our `calculate!` macro from the previous section to be variadic:
9
```rust,editable
10
macro_rules! calculate {
11
// The pattern for a single `eval`
12
- (eval $e:expr) => {{
+ (eval $e:expr) => {
13
{
14
let val: usize = $e; // Force types to be integers
15
println!("{} = {}", stringify!{$e}, val);
16
}
17
- }};
+ };
18
19
// Decompose multiple `eval`s recursively
20
(eval $e:expr, $(eval $es:expr),+) => {{
0 commit comments