Skip to content

Commit 55f5312

Browse files
committed
macros.md: fix parentheses/braces in inlined Macros.assert() example
The parantheses and braces where swapped. Also align the style with the follow up example to make it easier to spot the differences.
1 parent f1252d8 commit 55f5312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/metaprogramming/macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ Inlining the `assert` function would give the following program:
414414
```scala
415415
@main def program =
416416
val x = 1
417-
${ Macros.assertImpl('{ x != 0) } }
417+
${ Macros.assertImpl('{ x != 0}) }
418418
```
419419

420420
The example is only phase correct because `Macros` is a global value and

0 commit comments

Comments
 (0)