From de7b5ce80708028d892289771b5145de6b9bb3b8 Mon Sep 17 00:00:00 2001 From: gftea <1705787+gftea@users.noreply.github.com> Date: Sun, 29 May 2022 20:45:59 +0200 Subject: [PATCH] Update dsl.md remove unnecessary braces --- src/macros/dsl.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macros/dsl.md b/src/macros/dsl.md index fb0c23550d..9aaeda34cd 100644 --- a/src/macros/dsl.md +++ b/src/macros/dsl.md @@ -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() {