Skip to content

Commit

Permalink
Clarify that literal patterns include boolean, null, and undefined. C…
Browse files Browse the repository at this point in the history
…loses tc39#3.
  • Loading branch information
bterlson committed Jul 3, 2017
1 parent a671a80 commit 44531a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ IdentifierMatchPattern :
// Any binding identifier
LiteralMatchPattern :
// number or string literal
// number, string, boolean, null, or undefined literal
```

## Object Patterns
Expand Down Expand Up @@ -85,7 +85,7 @@ match (arr) {
```

## Literal Patterns
Literal patterns are array and string literals and matches exactly that value. Examples:
Literal patterns are string, number, boolean, null, and undefined literals and matches exactly that value. Examples:

```js
match (val) {
Expand Down

0 comments on commit 44531a0

Please sign in to comment.