Skip to content

Commit 49a41a3

Browse files
committed
Clarifies spelling of for’s reversed flag to address TheAlgorithms#843
It should now be harder to read the docs and miss the extra letter required for reversed compared to reverse, which causes a fairly generic syntax warning when trying to reverse sort a collection in a for loop.
1 parent 61848f9 commit 49a41a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tags/iteration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Defines a range of numbers to loop through. The range can be defined by both lit
133133

134134
### reversed
135135

136-
Reverses the order of the loop.
136+
Reverses the order of the loop. Note that the flag’s spelling is different to the filter `reverse`.
137137

138138
<p class="code-label">Input</p>
139139
```liquid

0 commit comments

Comments
 (0)