Skip to content

Commit d81d8d9

Browse files
Merge pull request #12733 from Flowdalic/macros-braces-typo-fix
macros.md: fix parentheses/braces in inlined Macros.assert() example
2 parents bfccdfa + 55f5312 commit d81d8d9

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)