From 607e9e4a74eb61cab429196743ec666b5795606d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=81?= Date: Tue, 13 Jun 2017 16:11:34 +0800 Subject: [PATCH] Create destructuring.md --- docs/destructuring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/destructuring.md b/docs/destructuring.md index bf0bd4d..188b83f 100644 --- a/docs/destructuring.md +++ b/docs/destructuring.md @@ -511,7 +511,7 @@ let {(x): c} = {}; let { o: ({ p: p }) } = { o: { p: 2 } }; ``` -上面三个语句都会报错,因为它们都是变量声明语句,模式不能使用圆括号。 +上面6个语句都会报错,因为它们都是变量声明语句,模式不能使用圆括号。 (2)函数参数中,模式不能带有圆括号。