Skip to content

Commit

Permalink
Update staging.md - tiny beautification
Browse files Browse the repository at this point in the history
  • Loading branch information
ozenzin authored Dec 18, 2024
1 parent 95741a2 commit 50bb1b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_docs/reference/metaprogramming/staging.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ import scala.quoted.*
// make available the necessary compiler for runtime code generation
given staging.Compiler = staging.Compiler.make(getClass.getClassLoader)

def power3: Double => Double = staging.run {
val power3: Double => Double = staging.run {
val stagedPower3: Expr[Double => Double] =
'{ (x: Double) => ${ unrolledPowerCode('x, 3) } }
println(stagedPower3.show) // Prints "((x: scala.Double) => x.*(x.*(x)))"
Expand Down

0 comments on commit 50bb1b8

Please sign in to comment.