Skip to content

Commit

Permalink
fix errata (thanks bradleypriest)
Browse files Browse the repository at this point in the history
  • Loading branch information
maccman committed Jun 15, 2011
1 parent e6382d3 commit 821c5bd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion coffeescript/01_syntax.html
Expand Up @@ -74,7 +74,7 @@ <h2>Variables &amp; Scope</h2>

<h2>Functions</h2>

<p>CoffeeScript removes the rather verbose <code>function</code> statement, and replaces it with an thin arrow: <code>-&gt;</code>. 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 <code>return</code> statement unless you want to return earlier inside the function.</p>
<p>CoffeeScript removes the rather verbose <code>function</code> statement, and replaces it with a thin arrow: <code>-&gt;</code>. 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 <code>return</code> statement unless you want to return earlier inside the function.</p>

<p>With that in mind, let's take a look at an example:</p>

Expand Down
2 changes: 1 addition & 1 deletion coffeescript/05_applications.html
Expand Up @@ -191,7 +191,7 @@ <h2>JavaScript templates</h2>
<pre><code>require("views/users/show")(new User("name"))
</code></pre>

<h2>Bonus - 30 second deployment with Herkou</h2>
<h2>Bonus - 30 second deployment with Heroku</h2>

<p><a href="http://heroku.com/">Heroku</a> 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.</p>

Expand Down
2 changes: 1 addition & 1 deletion coffeescript/chapters/01_syntax.md
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion coffeescript/chapters/05_applications.md
Expand Up @@ -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.

Expand Down

0 comments on commit 821c5bd

Please sign in to comment.