Skip to content

Commit 0432e9e

Browse files
authored
Drop redundant extends clause in ADT docs
Seeing as it's not necessary, it's confusing to include it in a section about defining methods.
1 parent 58e387f commit 0432e9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/enums/adts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ As all other enums, ADTs can define methods. For instance, here is `Option` agai
6464

6565
```scala
6666
enum Option[+T] {
67-
case Some(x: T) extends Option[T]
67+
case Some(x: T)
6868
case None
6969

7070
def isDefined: Boolean = this match {

0 commit comments

Comments
 (0)