From 5a80d1e6b916e2d4afe4109d1f17bc40cc8c5882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=BF=97=E7=81=B5?= <405622394@qq.com> Date: Tue, 11 Jun 2024 17:14:47 +0800 Subject: [PATCH] fix typo --- .../expressions/operators/detructing-assignment.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/basic-concept/expressions/operators/detructing-assignment.md b/docs/basic-concept/expressions/operators/detructing-assignment.md index 914d2c412..98280a84c 100644 --- a/docs/basic-concept/expressions/operators/detructing-assignment.md +++ b/docs/basic-concept/expressions/operators/detructing-assignment.md @@ -567,7 +567,7 @@ let { foo, bar } = example(); ```js // 参数是一组有次序的值 -function f({x, y, z}) { ... } +function f([x, y, z]) { ... } f([1, 2, 3]); // 参数是一组无次序的值 @@ -625,7 +625,7 @@ map.set('first', 'hello'); map.set('second', 'world!'); for (let [key, value] of map) { - console.log(ket + ' is ' + value); + console.log(key + ' is ' + value); } // first is hello // second is world