File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
docs/_docs/reference/metaprogramming Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ scala -with-compiler -classpath out Test
98
98
## Example
99
99
100
100
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
102
102
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
104
104
expression at runtime. Within the scope of ` staging.run ` we can also invoke ` show ` on an expression
105
105
to get a source-like representation of the expression.
106
106
You can’t perform that action at this time.
0 commit comments