1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Fix invalid JS in one of the docs examples

Fixes #4175.
This commit is contained in:
Simon Lydell 2016-01-07 07:45:07 +01:00
parent ae72dbb379
commit ce84924101

View file

@ -554,7 +554,7 @@ Expressions
as an expression, returning an array containing the result of each iteration
through the loop.
</p>
<%= codeFor('while', 'lyrics.join("\n")') %>
<%= codeFor('while', 'lyrics.join("\\n")') %>
<p>
For readability, the <b>until</b> keyword is equivalent to <code>while not</code>,
and the <b>loop</b> keyword is equivalent to <code>while true</code>.