Skip to content

Commit a1bc2f0

Browse files
committed
Fix typo
1 parent 3f917bb commit a1bc2f0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

docs/docs/reference/derivation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Case[Labelled[T], (T, String)]
9191
And here is the one for `Option[T]`:
9292
```scala
9393
Cases[
94-
Case[Some[T], T * Unit],
94+
Case[Some[T], T *: Unit],
9595
Case[None.type, Unit]
9696
]
9797
```

tests/run/typeclass-derivation3.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ object datatypes {
1919
sealed trait Either[+L, +R] extends Product derives Eq, Pickler, Show
2020
case class Left[L](x: L) extends Either[L, Nothing]
2121
case class Right[R](x: R) extends Either[Nothing, R]
22-
23-
//object Either {}
2422
}
2523

2624
object typeclasses {

0 commit comments

Comments
 (0)