We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20895e1 commit ec1f012Copy full SHA for ec1f012
docs/docs/reference/metaprogramming/macros.md
@@ -36,12 +36,12 @@ import scala.quoted._
36
inline def assert(expr: => Boolean): Unit =
37
${ assertImpl('expr) }
38
39
-def assertImpl(expr: Expr[Boolean])(given qctx: QuoteContext) = '{
+def assertImpl(expr: Expr[Boolean])(given QuoteContext) = '{
40
if (!$expr)
41
throw new AssertionError(s"failed assertion: ${${ showExpr(expr) }}")
42
}
43
44
-def showExpr(expr: Expr[Boolean])(given qctx: QuoteContext): Expr[String] =
+def showExpr(expr: Expr[Boolean])(given QuoteContext): Expr[String] =
45
'{ "<some source code>" } // Better implementation later in this document
46
```
47
0 commit comments