From 40f261b9d9b5ecb0f4240cd885aa965818b2585d Mon Sep 17 00:00:00 2001 From: Mitsuru Ogawa Date: Fri, 1 Feb 2013 00:32:20 +0900 Subject: [PATCH 1/2] Fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c9d95b7..4f04ae92 100644 --- a/README.md +++ b/README.md @@ -454,7 +454,7 @@ var declaredButNotAssigned = true; } - // The interpretor is hoisting the variable + // The interpreter is hoisting the variable // declaration to the top of the scope. // Which means our example could be rewritten as: function example() { From 11bfc4a221907f20acf9ec8839f69cb5653cb1a2 Mon Sep 17 00:00:00 2001 From: Mitsuru Ogawa Date: Sun, 10 Feb 2013 23:54:57 +0900 Subject: [PATCH 2/2] Fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f04ae92..fbd0ba12 100644 --- a/README.md +++ b/README.md @@ -255,7 +255,7 @@ ``` - 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. - - **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). + - **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). ```javascript // bad