Skip to content

Commit ec1f012

Browse files
Apply suggestions from code review
1 parent 20895e1 commit ec1f012

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/metaprogramming/macros.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ import scala.quoted._
3636
inline def assert(expr: => Boolean): Unit =
3737
${ assertImpl('expr) }
3838

39-
def assertImpl(expr: Expr[Boolean])(given qctx: QuoteContext) = '{
39+
def assertImpl(expr: Expr[Boolean])(given QuoteContext) = '{
4040
if (!$expr)
4141
throw new AssertionError(s"failed assertion: ${${ showExpr(expr) }}")
4242
}
4343

44-
def showExpr(expr: Expr[Boolean])(given qctx: QuoteContext): Expr[String] =
44+
def showExpr(expr: Expr[Boolean])(given QuoteContext): Expr[String] =
4545
'{ "<some source code>" } // Better implementation later in this document
4646
```
4747

0 commit comments

Comments
 (0)