Skip to content

Commit d77f7d6

Browse files
committed
Minor typos.
1 parent 24ab78b commit d77f7d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/let.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ for (var j = 0; j < 3; j++) {
108108
funcs[j]();
109109
}
110110
```
111-
Here the functions close over (hence called a `closure`) the *local* variable (conviniently named `local`) and use that instead of the loop variable `i`. Note that closures come with a performance impact (they need to store the surrounding state) and therefore even though the ES6 `let` keyword in a loop would have the same behavior as the previous example, the following is an error in TypeScript if you target something less that ES6:
111+
Here the functions close over (hence called a `closure`) the *local* variable (conveniently named `local`) and use that instead of the loop variable `i`. Note that closures come with a performance impact (they need to store the surrounding state) and therefore even though the ES6 `let` keyword in a loop would have the same behavior as the previous example, the following is an error in TypeScript if you target something less than ES6:
112112

113113
```ts
114114
var funcs = [];
@@ -133,4 +133,4 @@ Despite a few limitations, we find `let` to be extremely useful to have for the
133133

134134
{% include "footer.md" %}
135135

136-
[](https://github.com/olov/defs/blob/master/loop-closures.md)
136+
[](https://github.com/olov/defs/blob/master/loop-closures.md)

0 commit comments

Comments
 (0)