Permalink
Browse files

Correction for incorrect var name.

  • Loading branch information...
Addy Osmani
Addy Osmani committed Dec 11, 2012
1 parent 7858160 commit 3b3891410f6e1fe038f3357bbc2eb0a27bfe70e9
Showing with 2 additions and 2 deletions.
  1. +2 −2 book/index.html
View
@@ -1367,14 +1367,14 @@ <h2 id="revealingmodulepatternjavascript">
var myRevealingModule = function () {
var privateVar = "Ben Cherry",
- publicVar = "Hey there!";
+ publicVar = "Hey there!";
function privateFunction() {
console.log( "Name:" + privateVar );
}
function publicSetName( strName ) {
- privateName = strName;
+ privateVar = strName;
}
function publicGetName() {

0 comments on commit 3b38914

Please sign in to comment.