Skip to content

Commit b855685

Browse files
authored
doc(macros): add missing using QuoteContext
1 parent 5b006fb commit b855685

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
@@ -223,7 +223,7 @@ The compiler takes an environment that maps variable names to Scala `Expr`s.
223223
```scala
224224
import scala.quoted.{given, _}
225225

226-
def compile(e: Exp, env: Map[String, Expr[Int]]): Expr[Int] = e match {
226+
def compile(e: Exp, env: Map[String, Expr[Int]])(using QuoteContext): Expr[Int] = e match {
227227
case Num(n) =>
228228
Expr(n)
229229
case Plus(e1, e2) =>

0 commit comments

Comments
 (0)