From 9d3cc774bc1947b550b060b1f64adfb61495422c Mon Sep 17 00:00:00 2001 From: ruanyf Date: Wed, 24 Sep 2014 18:58:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9destructuring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/destructuring.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/destructuring.md b/docs/destructuring.md index 20a0aba..c7bb984 100644 --- a/docs/destructuring.md +++ b/docs/destructuring.md @@ -84,8 +84,8 @@ var [foo] = null; var [foo = true] = []; foo // true -[x, y='b'] = ['a'] // x=3, y='b' -[x, y='b'] = ['a', undefined] // x=3, y='b' +[x, y='b'] = ['a'] // x='a', y='b' +[x, y='b'] = ['a', undefined] // x='a', y='b' ```