From 44531a0a5b5be9ae91231924e40802f513566a3d Mon Sep 17 00:00:00 2001 From: Brian Terlson Date: Mon, 3 Jul 2017 15:41:03 -0700 Subject: [PATCH] Clarify that literal patterns include boolean, null, and undefined. Closes #3. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aae7540..d8622b0 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ IdentifierMatchPattern : // Any binding identifier LiteralMatchPattern : - // number or string literal + // number, string, boolean, null, or undefined literal ``` ## Object Patterns @@ -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) {