Added a more clear example in the cycle() docs
authorBrandon Kelly <brandon@pixelandtonic.com>
Fri, 24 Jan 2014 12:27:48 +0000 (04:27 -0800)
committerBrandon Kelly <brandon@pixelandtonic.com>
Fri, 24 Jan 2014 12:27:48 +0000 (04:27 -0800)
commit8958565cef0c3082defb6ca7432eb198fc9806b7
tree50a3f936575a2280e559170eded62b472773b67b
parentae89c8853582f074c1e8f26ac3b67b2c4fff2609
Added a more clear example in the cycle() docs

The previous one was potentially misleading if you were focussed on the actual numbers (0 is even, not odd! etc.), and 99% of the time you’re going to be passing loop.index0 into cycle, so I felt that should be included in the example.
doc/functions/cycle.rst