We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95741a2 commit 50bb1b8Copy full SHA for 50bb1b8
docs/_docs/reference/metaprogramming/staging.md
@@ -110,7 +110,7 @@ import scala.quoted.*
110
// make available the necessary compiler for runtime code generation
111
given staging.Compiler = staging.Compiler.make(getClass.getClassLoader)
112
113
-def power3: Double => Double = staging.run {
+val power3: Double => Double = staging.run {
114
val stagedPower3: Expr[Double => Double] =
115
'{ (x: Double) => ${ unrolledPowerCode('x, 3) } }
116
println(stagedPower3.show) // Prints "((x: scala.Double) => x.*(x.*(x)))"
0 commit comments