Skip to content

Commit 06595f7

Browse files
Merge pull request #8296 from robstoll/patch-24
doc(macros): add missing `using QuoteContext`
2 parents 5298123 + b855685 commit 06595f7

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)