From b855685a0da70b6376bb82b9a4528785e0c15447 Mon Sep 17 00:00:00 2001 From: Robert Stoll Date: Wed, 12 Feb 2020 08:21:04 +0100 Subject: [PATCH] doc(macros): add missing `using QuoteContext` --- 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 40c18c2221ec..5a033a4be48b 100644 --- a/docs/docs/reference/metaprogramming/macros.md +++ b/docs/docs/reference/metaprogramming/macros.md @@ -223,7 +223,7 @@ The compiler takes an environment that maps variable names to Scala `Expr`s. ```scala import scala.quoted.{given, _} -def compile(e: Exp, env: Map[String, Expr[Int]]): Expr[Int] = e match { +def compile(e: Exp, env: Map[String, Expr[Int]])(using QuoteContext): Expr[Int] = e match { case Num(n) => Expr(n) case Plus(e1, e2) =>