Skip to content

Commit 0129487

Browse files
committed
Fix typos in documentation: reference > enums
1 parent 068f42d commit 0129487

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/docs/reference/enums/adts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ object Option {
8383
Enumerations and ADTs have been presented as two different
8484
concepts. But since they share the same syntactic construct, they can
8585
be seen simply as two ends of a spectrum and it is perfectly possible
86-
to conctruct hybrids. For instance, the code below gives an
86+
to construct hybrids. For instance, the code below gives an
8787
implementation of `Color` either with three enum values or with a
8888
parameterized case that takes an RGB value.
8989

docs/docs/reference/enums/desugarEnums.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Scala's other language features. As such, enums in Scala are
88
convenient _syntactic sugar_, but they are not essential to understand
99
Scala's core.
1010

11-
We now explain the expansion of enums is explained in detail. First,
11+
We now explain the expansion of enums in detail. First,
1212
some terminology and notational conventions:
1313

1414
- We use `E` as a name of an enum class, and `C` as a name of an enum case that appears in the companion object of `E`.
@@ -20,7 +20,7 @@ some terminology and notational conventions:
2020
- _Simple cases_ are cases of a non-generic enum class that have neither parameters nor an extends clause or body. That is, they consist of a name only.
2121
- _Value cases_ are all cases that do not have a parameter section but that do have a (possibly generated) extends clause and/or a body.
2222

23-
Simple cases and value cases are called collectively _singleton cases_.
23+
Simple cases and value cases are collectively called _singleton cases_.
2424

2525
The desugaring rules imply that class cases are mapped to case classes, and singleton cases are mapped to `val` definitions.
2626

docs/docs/reference/enums/enums.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ trait Enum {
117117
}
118118
```
119119

120-
Enum values with `extends` clauses get expanded to anonymus class instances.
120+
Enum values with `extends` clauses get expanded to anonymous class instances.
121121
For instance, the `VENUS` value above would be defined like this:
122122

123123
```scala

0 commit comments

Comments
 (0)