Skip to content

Commit 479fcbe

Browse files
author
Horace Ko
committed
Merge pull request airbnb#46 from mitsuruog/master
Fixed some typos.
2 parents c3111c7 + 11bfc4a commit 479fcbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
```
256256

257257
- Never declare a function in a non-function block (if, while, etc). Assign the function to a variable instead. Browsers will allow you to do it, but they all interpret it differently, which is bad news bears.
258-
- **Note:** ECMA-262 defines a `block` as a list of statements. A function declartion is not a statement. [Read ECMA-262's note on this issue](http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=97).
258+
- **Note:** ECMA-262 defines a `block` as a list of statements. A function declaration is not a statement. [Read ECMA-262's note on this issue](http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=97).
259259

260260
```javascript
261261
// bad
@@ -454,7 +454,7 @@
454454
var declaredButNotAssigned = true;
455455
}
456456

457-
// The interpretor is hoisting the variable
457+
// The interpreter is hoisting the variable
458458
// declaration to the top of the scope.
459459
// Which means our example could be rewritten as:
460460
function example() {

0 commit comments

Comments
 (0)