Skip to content

Commit d4d0291

Browse files
committed
Minor typos.
1 parent d77f7d6 commit d4d0291

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/destructuring.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var rect = { x: 0, y: 10, width: 15, height: 20 };
1515
var {x, y, width, height} = rect;
1616
console.log(x, y, width, height); // 0,10,15,20
1717
```
18-
Here in the absence of destructing you would have to pick off `x,y,width,height` one by one from `rect`.
18+
Here in the absence of destructuring you would have to pick off `x,y,width,height` one by one from `rect`.
1919

2020
#### Array Destructuring
2121
A common programming question : Swap two variables without using a third one. The TypeScript solution:
@@ -59,7 +59,7 @@ var _a;
5959
```
6060

6161
#### Summary
62-
Destructuring can make your code more readable and maintainable by reducing the line count and making the intent clear. Array destructuring can allow to use arrays as though they were tuples.
62+
Destructuring can make your code more readable and maintainable by reducing the line count and making the intent clear. Array destructuring can allow you to use arrays as though they were tuples.
6363

6464

6565
{% include "footer.md" %}

0 commit comments

Comments
 (0)