Skip to content

Commit c640e55

Browse files
authored
Fixing staging.md Example linked to obsolete macros-spec.md content
Missed a wording still referencing obsolete content (thanks code reviewers for pointing it out)
1 parent 50bb1b8 commit c640e55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/_docs/reference/metaprogramming/staging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ scala -with-compiler -classpath out Test
9898
## Example
9999

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

0 commit comments

Comments
 (0)