Skip to content

Commit

Permalink
Update spec/08-pattern-matching.md
Browse files Browse the repository at this point in the history
Co-authored-by: Fengyun Liu <liu@fengy.me>
  • Loading branch information
martijnhoekstra and liufengyun committed Feb 18, 2021
1 parent 36fa494 commit f4c7e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/08-pattern-matching.md
Expand Up @@ -240,7 +240,7 @@ the pattern.
An extractor pattern cannot match the value `null`. The implementation
ensures that the `unapply`/`unapplySeq` method is not applied to `null`.

The type `O` is said to be an _extractor type_ for some type `T` if it has a
A type is said to be an _extractor type_ for some type `T` if it has a
method `get` with return type `T`, and a method `isEmpty` with a return type
that conforms to `Boolean`. `Option[T]` is an extractor type for type `T`.

Expand Down

0 comments on commit f4c7e33

Please sign in to comment.