Skip to content

Commit 42155a6

Browse files
authored
改个标点符号
519行,数组里面的元素间用逗号而不是冒号
1 parent f78b5c9 commit 42155a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/destructuring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ let { o: ({ p: p }) } = { o: { p: 2 } };
516516
// 报错
517517
function f([(z)]) { return z; }
518518
// 报错
519-
function f([z: (x)]) { return x; }
519+
function f([z,(x)]) { return x; }
520520
```
521521

522522
(3)赋值语句的模式

0 commit comments

Comments
 (0)