From 67f41449068469603cda60a8f4d930febde44868 Mon Sep 17 00:00:00 2001 From: fabien Date: Sun, 13 Dec 2009 15:25:48 +0000 Subject: [PATCH] updated doc git-svn-id: http://svn.twig-project.org/trunk@175 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- doc/02-Twig-for-Template-Designers.markdown | 8 ++++---- doc/04-Extending-Twig.markdown | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/02-Twig-for-Template-Designers.markdown b/doc/02-Twig-for-Template-Designers.markdown index 9400039..d169fd6 100644 --- a/doc/02-Twig-for-Template-Designers.markdown +++ b/doc/02-Twig-for-Template-Designers.markdown @@ -902,10 +902,10 @@ The `in` operator is a syntactic sugar for the `in` filter: ### `range` (new in Twig 0.9.5) -Returns a list containing a sequence of numbers. The filtered value represents -the low value and the filter takes two arguments: the first one is mandatory -are represents the high value, and the second one is optional and represents -the step (which defaults to `1`). +Returns a list containing a sequence of numbers. The left side of the filter +represents the low value. The first argument of the filter is mandatory and +represents the high value. The second argument is optional and represents the +step (which defaults to `1`). If you do need to iterate over a sequence of numbers: diff --git a/doc/04-Extending-Twig.markdown b/doc/04-Extending-Twig.markdown index 10df4e8..3dea0b3 100644 --- a/doc/04-Extending-Twig.markdown +++ b/doc/04-Extending-Twig.markdown @@ -64,7 +64,7 @@ Defining new Filters -------------------- The most common element you will want to add to Twig is filters. A filter is -just a regular PHP callable that takes the left side of the filter as first +just a regular PHP function that takes the left side of the filter as first argument and the arguments passed to the filter as extra arguments. Let's create a filter, named `rot13`, which returns the -- 1.7.2.5