Skip to content

Commit

Permalink
fix typo: Nexted → Nested
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianhjr committed Feb 18, 2023
1 parent 20a178c commit e0ca526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/adt/scala.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ enum A {
}
```

In other words you can't write `final case class` inside an `enum`. You also can't nest `enum` inside `enum`. Nexted logical ors can be rewritten into a single logical or containing only logical ands (known as disjunctive normal form) so this is not a limitation in practice. However the Scala 2 representation is still available in Scala 3 should you want more expressivity.
In other words you can't write `final case class` inside an `enum`. You also can't nest `enum` inside `enum`. Nested logical ors can be rewritten into a single logical or containing only logical ands (known as disjunctive normal form) so this is not a limitation in practice. However the Scala 2 representation is still available in Scala 3 should you want more expressivity.


### Algebraic Data Types in Scala 2
Expand Down

0 comments on commit e0ca526

Please sign in to comment.