You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/reference/metaprogramming/macros.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -752,12 +752,12 @@ then the rest of the quote can refer to this definition.
752
752
}
753
753
```
754
754
755
-
To match such a term we need to match the definition and the rest of the code, but we need to expicilty state that the rest of the code may refer to this definition.
755
+
To match such a term we need to match the definition and the rest of the code, but we need to explicitly state that the rest of the code may refer to this definition.
756
756
```scala
757
757
case'{ valy:Int= $x; $body(y):Int } =>
758
758
```
759
-
Here `$x` will match any closed expression while `$body(y)` will match expression that is closed under `y`. Then
760
-
the subxpression of type `Expr[Int]` is bound to `body` as an `Expr[Int => Int]`. The extra argument represents the references to `y`. Usually this expression is used in compination with `Expr.betaReduce` to replace the extra argument.
759
+
Here `$x` will match any closed expression while `$body(y)` will match an expression that is closed under `y`. Then
760
+
the subexpression of type `Expr[Int]` is bound to `body` as an `Expr[Int => Int]`. The extra argument represents the references to `y`. Usually this expression is used in combination with `Expr.betaReduce` to replace the extra argument.
0 commit comments