diff --git a/coffeescript/01_syntax.html b/coffeescript/01_syntax.html index 97c6249..0454af8 100644 --- a/coffeescript/01_syntax.html +++ b/coffeescript/01_syntax.html @@ -74,7 +74,7 @@

Variables & Scope

Functions

-

CoffeeScript removes the rather verbose function statement, and replaces it with an thin arrow: ->. Functions can be one liners, or indented on multiple lines. The last expression in the function is implicitly returned. In other words, you don't need to use the return statement unless you want to return earlier inside the function.

+

CoffeeScript removes the rather verbose function statement, and replaces it with a thin arrow: ->. Functions can be one liners, or indented on multiple lines. The last expression in the function is implicitly returned. In other words, you don't need to use the return statement unless you want to return earlier inside the function.

With that in mind, let's take a look at an example:

diff --git a/coffeescript/05_applications.html b/coffeescript/05_applications.html index df9772a..b3ea9dd 100644 --- a/coffeescript/05_applications.html +++ b/coffeescript/05_applications.html @@ -191,7 +191,7 @@

JavaScript templates

require("views/users/show")(new User("name"))
 
-

Bonus - 30 second deployment with Herkou

+

Bonus - 30 second deployment with Heroku

Heroku is an incredibly awesome web host that manages all the servers and scaling for you, letting you get on with the exciting stuff (building awesome JavaScript applications). You'll need an account with Heroku for this tutorial to work, but the great news is that their basic plan is completely free. While traditionally a Ruby host, Heroku have recently released their Cedar stack which includes Node support.

diff --git a/coffeescript/chapters/01_syntax.md b/coffeescript/chapters/01_syntax.md index b19ec1f..082aef2 100644 --- a/coffeescript/chapters/01_syntax.md +++ b/coffeescript/chapters/01_syntax.md @@ -47,7 +47,7 @@ In the root context, `this` is equal to the global object, and by creating a loc ##Functions -CoffeeScript removes the rather verbose `function` statement, and replaces it with an thin arrow: `->`. Functions can be one liners, or indented on multiple lines. The last expression in the function is implicitly returned. In other words, you don't need to use the `return` statement unless you want to return earlier inside the function. +CoffeeScript removes the rather verbose `function` statement, and replaces it with a thin arrow: `->`. Functions can be one liners, or indented on multiple lines. The last expression in the function is implicitly returned. In other words, you don't need to use the `return` statement unless you want to return earlier inside the function. With that in mind, let's take a look at an example: diff --git a/coffeescript/chapters/05_applications.md b/coffeescript/chapters/05_applications.md index 0b30a97..a102589 100644 --- a/coffeescript/chapters/05_applications.md +++ b/coffeescript/chapters/05_applications.md @@ -156,7 +156,7 @@ Since we defined a `tmpl` compiler handler, Stitch will automatically compile ou require("views/users/show")(new User("name")) -##Bonus - 30 second deployment with Herkou +##Bonus - 30 second deployment with Heroku [Heroku](http://heroku.com/) is an incredibly awesome web host that manages all the servers and scaling for you, letting you get on with the exciting stuff (building awesome JavaScript applications). You'll need an account with Heroku for this tutorial to work, but the great news is that their basic plan is completely free. While traditionally a Ruby host, Heroku have recently released their Cedar stack which includes Node support.