Skip to content

Commit 50bb1b8

Browse files
authored
Update staging.md - tiny beautification
1 parent 95741a2 commit 50bb1b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_docs/reference/metaprogramming/staging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ import scala.quoted.*
110110
// make available the necessary compiler for runtime code generation
111111
given staging.Compiler = staging.Compiler.make(getClass.getClassLoader)
112112

113-
def power3: Double => Double = staging.run {
113+
val power3: Double => Double = staging.run {
114114
val stagedPower3: Expr[Double => Double] =
115115
'{ (x: Double) => ${ unrolledPowerCode('x, 3) } }
116116
println(stagedPower3.show) // Prints "((x: scala.Double) => x.*(x.*(x)))"

0 commit comments

Comments
 (0)