From: Fabien Potencier Date: Tue, 19 Oct 2010 11:19:52 +0000 (+0200) Subject: fixed typos in the docs X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=d70af74d1fd6cc427bb9f5cb6132589bf01d43e4;p=web%2Fkonrad%2Ftwig.git fixed typos in the docs --- diff --git a/doc/02-Twig-for-Template-Designers.markdown b/doc/02-Twig-for-Template-Designers.markdown index 01e61ad..52d296b 100644 --- a/doc/02-Twig-for-Template-Designers.markdown +++ b/doc/02-Twig-for-Template-Designers.markdown @@ -749,7 +749,7 @@ them as an array: [twig] {% include 'foo' with ['foo': 'bar'] %} - {% set vars as ['foo': 'bar'] %} + {% set vars = ['foo': 'bar'] %} {% include 'foo' with vars %} >**NOTE** @@ -862,7 +862,7 @@ If you need to apply filters to the variables, you first need to assign the result to a variable: [twig] - {% set name as name|capitalize %} + {% set name = name|capitalize %} {% trans %} Hello {{ name }}! @@ -1053,7 +1053,7 @@ The `cycle` filter can be used to cycle between an array of values: The array can contain any number of values: [twig] - {% set fruits as ['apple', 'orange', 'citrus'] %} + {% set fruits = ['apple', 'orange', 'citrus'] %} {% for i in 0..10 %} {{ fruits|cycle(i) }} diff --git a/doc/03-Twig-for-Developers.markdown b/doc/03-Twig-for-Developers.markdown index e973f6e..9dfb23b 100644 --- a/doc/03-Twig-for-Developers.markdown +++ b/doc/03-Twig-for-Developers.markdown @@ -335,7 +335,7 @@ Twig 0.9.5 and above): [twig] {{ "Twig
" }} {# won't be escaped #} - {% set text as "Twig
" %} + {% set text = "Twig
" %} {{ text }} {# will be escaped #} * Escaping is applied before any other filter is applied (the reasoning