Skip to content

Commit ab1c594

Browse files
authored
Merge pull request ruanyf#471 from Jet12138/patch-1
改个标点符号
2 parents f78b5c9 + 42155a6 commit ab1c594

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)