Skip to content

Commit

Permalink
Fix illegal type of expr in scala3 macros overview
Browse files Browse the repository at this point in the history
  • Loading branch information
road21 authored and julienrf committed Jul 11, 2024
1 parent 178372b commit cba8042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _overviews/scala3-macros/tutorial/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ Note, that `matches` only performs a limited amount of normalization and while f
### Arbitrary Expressions

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

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

0 comments on commit cba8042

Please sign in to comment.