Skip to content

Commit 7dd089d

Browse files
committed
Improve docs
1 parent 22322a0 commit 7dd089d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/docs/reference/metaprogramming/macros.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,10 +697,13 @@ Sometimes it is necessary to get a more precise type for an expression. This can
697697
def f(exp: Expr[Any]) =
698698
expr match
699699
case '{ $x: $t } =>
700-
// There there exists some local `type T` for which we have `x: Expr[T]` and a `given t: Type[T]`
700+
// If the pattern match succeeds, then there is some type `T` such that
701+
// - `x` is bound to a variable of type `Expr[T]`
702+
// - `t` is bound to a given instance of type `Type[T]`
703+
// That is, we have `x: Expr[T]` and `given t: Type[T]`, for some (unknown) type `T`.
701704
```
702705

703-
This might be used to then prerorm an implicit search as in:
706+
This might be used to then perform an implicit search as in:
704707

705708

706709
```scala

0 commit comments

Comments
 (0)