From 2040540e365de3e1e66b458ff53275177baaf6f5 Mon Sep 17 00:00:00 2001 From: Sven Boekhoff Date: Thu, 23 Apr 2015 16:57:00 +0200 Subject: [PATCH] Fixed error in "Syntax" -> "Object literals & array definition" The part "... arrays can use whitespace instead of comma separators ..." implies, that `a = [1 2 3]` also works, but it doesn't. Thus "whitespace" should be replaced by "newline". --- coffeescript/02_syntax.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coffeescript/02_syntax.html b/coffeescript/02_syntax.html index 7d4226d..d1d7e84 100644 --- a/coffeescript/02_syntax.html +++ b/coffeescript/02_syntax.html @@ -190,7 +190,7 @@

Object literals & array definition

User.create(name: "John Smith") -

Likewise, arrays can use whitespace instead of comma separators, although the square brackets ([]) are still required.

+

Likewise, arrays can use newline instead of comma separators, although the square brackets ([]) are still required.

@@ -414,4 +414,4 @@

Aliases & the Existential Operator

- \ No newline at end of file +