Skip to content

Commit 21cfaeb

Browse files
authored
less repetition, add a missing 'a'
1 parent 23e24e8 commit 21cfaeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: _overviews/scala3-macros/tutorial/quotes.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ But what about the cases where we want more flexibility (eg. we know the subset
270270

271271
#### Iterative deconstruction of a function expression
272272

273-
Let's imagine we need a macro that collects names of methods used in an expression of type `FieldName => FieldName`, for a definition of `FieldName` that looks like this:
273+
Let's imagine we need a macro that collects names of methods used in an expression of type `FieldName => FieldName`, for a definition of `FieldName`:
274274

275275
```scala
276276
trait FieldName:
@@ -299,7 +299,7 @@ def collectUsedMethods(func: Expr[FieldName => FieldName])(using Quotes): List[S
299299
recurse(func, Nil)
300300
```
301301

302-
For more details on how patterns like `$body(arg)` work please refer to docs section on [the HOAS pattern](https://dotty.epfl.ch/docs/reference/metaprogramming/macros.html#hoas-patterns-1).
302+
For more details on how patterns like `$body(arg)` work please refer to a docs section on [the HOAS pattern](https://dotty.epfl.ch/docs/reference/metaprogramming/macros.html#hoas-patterns-1).
303303

304304
If we were to use this on an expression like this one:
305305
```scala

0 commit comments

Comments
 (0)