Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 0aeef7a

Browse files
committed
Merge pull request #240 from gburdeti/master
Add missing curly brace. Typo fix for a module import.
2 parents 29a8753 + e01a8bf commit 0aeef7a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

pages/Iterators and Generators.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ for (let i in list) {
3232

3333
for (let i of list) {
3434
console.log(i); // "4", "5", "6"
35+
}
3536
```
3637

3738
Another distinction is that `for..in` operates on any object; it serves as a way to inspect properties on this object.

pages/Modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default class ZipCodeValidator {
166166
```ts
167167
import validator from "./ZipCodeValidator";
168168

169-
let validator = new validator();
169+
let myValidator = new validator();
170170
```
171171

172172
or
@@ -244,7 +244,7 @@ import zip = require("./ZipCodeValidator");
244244
let strings = ["Hello", "98052", "101"];
245245

246246
// Validators to use
247-
let validator = new zip.ZipCodeValidator();
247+
let validator = new zip();
248248

249249
// Show whether each string passed each validator
250250
strings.forEach(s => {

pages/Symbols.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ Just like strings, symbols can be used as keys for object properties.
2424
```ts
2525
let sym = Symbol();
2626

27-
let obj = {};
27+
let obj = {
28+
[sym]: "value"
29+
};
2830

29-
obj[sym] = "value";
3031
console.log(obj[sym]); // "value"
3132
```
3233

0 commit comments

Comments
 (0)