Skip to content

Commit 4a59cd2

Browse files
committed
Fix a code example in macros.md
1 parent 7299639 commit 4a59cd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/metaprogramming/macros.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ a `List` is liftable if its element type is:
331331
given [T: ToExpr : Type]: ToExpr[List[T]] with
332332
def toExpr(xs: List[T]) = xs match
333333
case head :: tail => '{ ${ Expr(head) } :: ${ toExpr(tail) } }
334-
case Nil => '{ Nil: List[T] }
334+
case Nil => '{ Nil: List[T] }
335335
```
336336

337337
In the end, `ToExpr` resembles very much a serialization
@@ -762,7 +762,7 @@ trait Show[-T]:
762762
def show(x: T): String
763763

764764
// in a different file
765-
given Show[Boolean]:
765+
given Show[Boolean] with
766766
def show(b: Boolean) = "boolean!"
767767

768768
println(showMe"${true}")

0 commit comments

Comments
 (0)