Skip to content

Commit 7c3e131

Browse files
authored
Merge pull request #45 from bluewaitor/patch-1
fix typo
2 parents ab96817 + 5a80d1e commit 7c3e131

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/basic-concept/expressions/operators/detructing-assignment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ let { foo, bar } = example();
567567

568568
```js
569569
// 参数是一组有次序的值
570-
function f({x, y, z}) { ... }
570+
function f([x, y, z]) { ... }
571571
f([1, 2, 3]);
572572

573573
// 参数是一组无次序的值
@@ -625,7 +625,7 @@ map.set('first', 'hello');
625625
map.set('second', 'world!');
626626

627627
for (let [key, value] of map) {
628-
console.log(ket + ' is ' + value);
628+
console.log(key + ' is ' + value);
629629
}
630630
// first is hello
631631
// second is world

0 commit comments

Comments
 (0)