From 55f531248f580d427972f70d377e728fb3fc7673 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 7 Jun 2021 09:32:14 +0200 Subject: [PATCH] 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. --- docs/docs/reference/metaprogramming/macros.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/reference/metaprogramming/macros.md b/docs/docs/reference/metaprogramming/macros.md index 5b77a3e5a9d0..12fc773c6275 100644 --- a/docs/docs/reference/metaprogramming/macros.md +++ b/docs/docs/reference/metaprogramming/macros.md @@ -414,7 +414,7 @@ Inlining the `assert` function would give the following program: ```scala @main def program = val x = 1 - ${ Macros.assertImpl('{ x != 0) } } + ${ Macros.assertImpl('{ x != 0}) } ``` The example is only phase correct because `Macros` is a global value and