From 099cddf1b36de21a1edaad5ccf5ed0655ac88bc9 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Tue, 1 Dec 2020 20:52:09 +0000 Subject: [PATCH] Typo in metaprogramming documentation --- 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 13dc946c73dd..2dd20d0cb84a 100644 --- a/docs/docs/reference/metaprogramming/macros.md +++ b/docs/docs/reference/metaprogramming/macros.md @@ -635,7 +635,7 @@ It is possible to deconstruct or extract values out of `Expr` using pattern matc * `scala.quoted.Unlifted`: matches an expression of a value (or list of values) and returns the value (or list of values). * `scala.quoted.Const`/`scala.quoted.Consts`: Same as `Unlifted` but only works on primitive values. -* `scala.quoted.Varargs`: matches an explicit sequence of expresions and returns them. These sequences are useful to get individual `Expr[T]` out of a varargs expression of type `Expr[Seq[T]]`. +* `scala.quoted.Varargs`: matches an explicit sequence of expressions and returns them. These sequences are useful to get individual `Expr[T]` out of a varargs expression of type `Expr[Seq[T]]`. These could be used in the following way to optimize any call to `sum` that has statically known values.