diff --git a/documentation/index.html.erb b/documentation/index.html.erb index 4bd550da..e481b541 100644 --- a/documentation/index.html.erb +++ b/documentation/index.html.erb @@ -294,7 +294,8 @@ print reverse 'tpircseeffoc' Assignment Use a colon : to assign, as in JSON. Equal signs are only needed for - mathy things. + mathy things. While colons are preferred, the two may be used interchangeably, + even within object literals.

<%= code_for('assignment', 'greeting') %>

diff --git a/index.html b/index.html index fcd1eb55..9bb7bf70 100644 --- a/index.html +++ b/index.html @@ -407,7 +407,8 @@ cube = function cube(x) { Assignment Use a colon : to assign, as in JSON. Equal signs are only needed for - mathy things. + mathy things. While colons are preferred, the two may be used interchangeably, + even within object literals.

greeting: "Hello CoffeeScript"
 difficulty: 0.5