Corrected description of the "//" operator
authorureimers <ureimers@bimp.de>
Tue, 3 Dec 2013 11:55:12 +0000 (12:55 +0100)
committerureimers <ureimers@bimp.de>
Tue, 3 Dec 2013 11:55:12 +0000 (12:55 +0100)
commita360bc037c40c4ad3d69056955d67a39ad5fd75e
treec57d9dc4ce376ece608f1765c3d79cd61b224dbf
parentcab9fd9a100e74aafa201a03ca31aeeb4097c9bc
Corrected description of the "//" operator

The operator was previously described to truncate the the value when it in fact floors the result of the division (which can be seen in https://github.com/fabpot/Twig/blob/master/lib/Twig/Node/Expression/Binary/FloorDiv.php#L20).
By the old description one would think that ``{{ -20 // 7 }}`` would yield -2 (as in ``(int)(-20/7)``) when it actually returns -3 (as in ``floor(-20/7)``). Floor is not truncate (cast to int).
doc/templates.rst