Skip to content

Commit d2f4009

Browse files
committed
Adding a negative array loop example to the docs
1 parent 673125e commit d2f4009

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

documentation/index.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ Expressions
11761176
</li>
11771177
<li>
11781178
You can now loop over an array backwards, without having to manually
1179-
deal with the indexes.
1179+
deal with the indexes: <tt>for item in list by -1</tt>
11801180
</li>
11811181
<li>
11821182
Source locations are now preserved in the CoffeeScript AST, although

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2346,7 +2346,7 @@ <h2>
23462346
</li>
23472347
<li>
23482348
You can now loop over an array backwards, without having to manually
2349-
deal with the indexes.
2349+
deal with the indexes: <tt>for item in list by -1</tt>
23502350
</li>
23512351
<li>
23522352
Source locations are now preserved in the CoffeeScript AST, although

0 commit comments

Comments
 (0)