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' ```