Skip to content

Commit e438575

Browse files
authored
Typos in macros.md
1 parent aa6b172 commit e438575

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/reference/metaprogramming/macros.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,12 +752,12 @@ then the rest of the quote can refer to this definition.
752752
}
753753
```
754754

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.
756756
```scala
757757
case '{ val y: Int = $x; $body(y): Int } =>
758758
```
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.
761761

762762
```scala
763763
inline def eval(inline e: Int): Int = ${ evalExpr('e) }

0 commit comments

Comments
 (0)