Skip to content

Commit 071c8e0

Browse files
authored
Update dsl.md (#185)
1 parent 3eb378b commit 071c8e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macros/dsl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ DSL 是 Rust 的宏中集成的微型 “语言”。这种语言是完全合法
66

77
```rust,editable
88
macro_rules! calculate {
9-
(eval $e:expr) => {{
9+
(eval $e:expr) => {
1010
{
1111
let val: usize = $e; // 强制类型为整型
1212
println!("{} = {}", stringify!{$e}, val);
1313
}
14-
}};
14+
};
1515
}
1616
1717
fn main() {

0 commit comments

Comments
 (0)