Skip to content

Commit 4c2c248

Browse files
committed
Update function.md
1 parent db07394 commit 4c2c248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ rest // ["bar","baz"]
411411
const [...butLast, last] = [1, 2, 3, 4, 5];
412412
// 报错
413413

414-
const [first, ..., last] = [1, 2, 3, 4, 5];
414+
const [first, ...middle, last] = [1, 2, 3, 4, 5];
415415
// 报错
416416

417417
```

0 commit comments

Comments
 (0)