updated doc
authorfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Wed, 6 Jan 2010 08:21:18 +0000 (08:21 +0000)
committerfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Wed, 6 Jan 2010 08:21:18 +0000 (08:21 +0000)
git-svn-id: http://svn.twig-project.org/trunk@209 93ef8e89-cb99-4229-a87c-7fa0fa45744b

doc/02-Twig-for-Template-Designers.markdown

index a2557bd..7da2faf 100644 (file)
@@ -750,6 +750,9 @@ but exists for completeness' sake. The following operators are supported:
 
  * `%`: Calculate the remainder of an integer division. `{{ 11 % 7 }}` is `4`.
 
+ * `//`: Divide two numbers and return the truncated integer result. `{{ 20 //
+   7 }}` is `2`.
+
  * `*`: Multiply the left operand with the right one. `{{ 2 * 2 }}` would
    return `4`. This can also be used to repeat a string multiple times. `{{
    '=' * 80 }}` would print a bar of 80 equal signs.
@@ -846,14 +849,6 @@ otherwise:
     [twig]
     {{ var|odd ? 'odd' : 'even' }}
 
-### `floor`
-
-The `floor` filter divides two numbers and return the truncated integer
-result
-
-    [twig]
-    {{ 20|floor(7) }} {# returns 2 #}
-
 ### `encoding`
 
 The `encoding` filter URL encode a given string.