Skip to content

Fix typos in documentation: reference > enums #3587

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/reference/enums/adts.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ object Option {
Enumerations and ADTs have been presented as two different
concepts. But since they share the same syntactic construct, they can
be seen simply as two ends of a spectrum and it is perfectly possible
to conctruct hybrids. For instance, the code below gives an
to construct hybrids. For instance, the code below gives an
implementation of `Color` either with three enum values or with a
parameterized case that takes an RGB value.

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/reference/enums/desugarEnums.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Scala's other language features. As such, enums in Scala are
convenient _syntactic sugar_, but they are not essential to understand
Scala's core.

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

- 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`.
Expand All @@ -20,7 +20,7 @@ some terminology and notational conventions:
- _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.
- _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.

Simple cases and value cases are called collectively _singleton cases_.
Simple cases and value cases are collectively called _singleton cases_.

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

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/reference/enums/enums.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ trait Enum {
}
```

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

```scala
Expand Down