Skip to content

Commit 906fc1f

Browse files
committed
Fix typos
1 parent 5b5ef9a commit 906fc1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/reference/tasty-reflect.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def natConstImpl(x: Expr[Int])(implicit reflection: Reflection): Expr[Int] = {
3232
}
3333
```
3434

35-
`import reflection._` will provide a `reflect` extension method on `quoted.Expr` and `quoted.Type` which return a `reflection.Term` and `reflection.TypeTree` respectivly.
36-
It will also import all extractors and methods on TASTy Reflect trees. For example the `Term.Literal(_)` extractor used bellow.
35+
`import reflection._` will provide a `reflect` extension method on `quoted.Expr` and `quoted.Type` which return a `reflection.Term` and `reflection.TypeTree` respectively.
36+
It will also import all extractors and methods on TASTy Reflect trees. For example the `Term.Literal(_)` extractor used below.
3737

3838
```scala
3939
def natConstImpl(x: Expr[Int])(implicit reflection: Reflection): Expr[Int] = {
@@ -50,7 +50,7 @@ def natConstImpl(x: Expr[Int])(implicit reflection: Reflection): Expr[Int] = {
5050
}
5151
```
5252

53-
To easily know which extractor are needed the `reflection.Term.show` method returns the string representation of the extractors.
53+
To easily know which extractors are needed, the `reflection.Term.show` method returns the string representation of the extractors.
5454

5555
The method `reflection.Term.reify[T]` provides a way to to go back to a `quoted.Expr`.
5656
Note that the type must be set explicitly and that if it does not conform to it an exception will be thrown.

0 commit comments

Comments
 (0)