Clarifies spelling of for’s reversed flag to address #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.
This commit is contained in:
Mark Crossfield
2017-01-08 12:42:42 +00:00
parent ffb0ace303
commit e5cbdb2b27

View File

@@ -23,7 +23,7 @@ module Liquid
# {{ item.name }}
# {% end %}
#
# To reverse the for loop simply use {% for item in collection reversed %}
# To reverse the for loop simply use {% for item in collection reversed %} (note that the flags spelling is different to the filter `reverse`)
#
# == Available variables:
#