Skip to content

Commit 866ac14

Browse files
Merge pull request #6738 from lampepfl/anatoliykmetyuk-patch-1
Use standard syntax for `if` in macro docs
2 parents 3589a1d + d9c6537 commit 866ac14

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
@@ -37,7 +37,7 @@ prints it again in an error message if it evaluates to `false`.
3737
${ assertImpl('expr) }
3838

3939
def assertImpl(expr: Expr[Boolean]) = '{
40-
if !($expr) then
40+
if (!$expr)
4141
throw new AssertionError(s"failed assertion: ${${ showExpr(expr) }}")
4242
}
4343

0 commit comments

Comments
 (0)