diff --git a/docs/docs/reference/metaprogramming/macros.md b/docs/docs/reference/metaprogramming/macros.md index 05d1c8cc6f52..2f4ceef39620 100644 --- a/docs/docs/reference/metaprogramming/macros.md +++ b/docs/docs/reference/metaprogramming/macros.md @@ -37,7 +37,7 @@ prints it again in an error message if it evaluates to `false`. ${ assertImpl('expr) } def assertImpl(expr: Expr[Boolean]) = '{ - if !($expr) then + if (!$expr) throw new AssertionError(s"failed assertion: ${${ showExpr(expr) }}") }