Skip to content

Commit 28e6cf5

Browse files
author
Aggelos Biboudis
authored
Merge pull request #5570 from dotty-staging/tasty-reflect-doc-typos
Fix typos on tasty reflect doc
2 parents ce62b37 + de1cff9 commit 28e6cf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/tasty-reflect.md

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

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

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

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

55-
The method `reflection.Term.reify[T]` provides a way to to go back to a `quoted.Expr`.
55+
The method `reflection.Term.reify[T]` provides a way 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.
5757
In the code above we could have replaced `n.toExpr` by `xTree.reify[Int]`.
5858

0 commit comments

Comments
 (0)