Skip to content

Commit

Permalink
Merge pull request #3137 from evis/patch-1
Browse files Browse the repository at this point in the history
rm redundant space
  • Loading branch information
Philippus authored Dec 26, 2024
2 parents 618dcee + 220dc0a commit d9ebf0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _overviews/scala3-macros/tutorial/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ inline def sumNow(inline nums: Int*): Int =
def sumCode(nums: Expr[Seq[Int]])(using Quotes): Expr[Int] =
import quotes.reflect.report
nums match
case Varargs(numberExprs) => // numberExprs: Seq[Expr[Int]]
case Varargs(numberExprs) => // numberExprs: Seq[Expr[Int]]
val numbers: Seq[Int] = numberExprs.map(_.valueOrAbort)
Expr(numbers.sum)
case _ => report.errorAndAbort(
Expand Down

0 comments on commit d9ebf0c

Please sign in to comment.