Skip to content

Commit

Permalink
Update staging.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Bersier authored Jan 4, 2024
1 parent 60b8437 commit 446df7a
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 @@ -108,7 +108,7 @@ to get a source-like representation of the expression.
import scala.quoted.*

// make available the necessary compiler for runtime code generation
given staging.Compiler = staging.Compiler.make(getClass.getClassLoader)
given staging.Compiler = staging.Compiler.make(Predef.getClass.getClassLoader)

val f: Array[Int] => Int = staging.run {
val stagedSum: Expr[Array[Int] => Int] =
Expand Down

0 comments on commit 446df7a

Please sign in to comment.