Skip to content

Commit

Permalink
Merge pull request #1543 from gftea/patch-1
Browse files Browse the repository at this point in the history
Update dsl.md to remove unnecessary braces
  • Loading branch information
marioidival authored May 30, 2022
2 parents 2ed2686 + de7b5ce commit 291e2bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macros/dsl.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ an expression and have the output printed to console.

```rust,editable
macro_rules! calculate {
(eval $e:expr) => {{
(eval $e:expr) => {
{
let val: usize = $e; // Force types to be integers
println!("{} = {}", stringify!{$e}, val);
}
}};
};
}
fn main() {
Expand Down

0 comments on commit 291e2bc

Please sign in to comment.