Skip to content

Commit cba8042

Browse files
road21julienrf
authored andcommitted
Fix illegal type of expr in scala3 macros overview
1 parent 178372b commit cba8042

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-macros/tutorial/macros.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ Note, that `matches` only performs a limited amount of normalization and while f
290290
### Arbitrary Expressions
291291

292292
Last but not least, it is possible to create an `Expr[T]` from arbitary Scala code by enclosing it in [quotes][quotes].
293-
For example, `'{ ${expr}; true }` will generate an `Expr[Int]` equivalent to `Expr.block(List(expr), Expr(true))`.
293+
For example, `'{ ${expr}; true }` will generate an `Expr[Boolean]` equivalent to `Expr.block(List(expr), Expr(true))`.
294294
The subsequent section on [Quoted Code][quotes] presents quotes in more detail.
295295

296296
[contributing]: {% link scala3/contribute-to-docs.md %}

0 commit comments

Comments
 (0)