Skip to content

Commit

Permalink
Fixing staging.md Example linked to obsolete macros-spec.md content
Browse files Browse the repository at this point in the history
Missed a wording still referencing obsolete content (thanks code reviewers for pointing it out)
  • Loading branch information
ozenzin authored Dec 19, 2024
1 parent 50bb1b8 commit c640e55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_docs/reference/metaprogramming/staging.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ scala -with-compiler -classpath out Test
## Example

Now take exactly the same example as in [Macros](./macros.md). Assume that we
do not want to pass an array statically but generate code at run-time and pass
do not want to pass a base double value statically but generate code at run-time and pass
the value, also at run-time. Note, how we make a future-stage function of type
`Expr[Array[Int] => Int]` in line 6 below. Using `staging.run { ... }` we can evaluate an
`Expr[Double => Double]` in line 6 below. Using `staging.run { ... }` we can evaluate an
expression at runtime. Within the scope of `staging.run` we can also invoke `show` on an expression
to get a source-like representation of the expression.

Expand Down

0 comments on commit c640e55

Please sign in to comment.