fixed typos in the docs
authorFabien Potencier <fabien.potencier@gmail.com>
Tue, 19 Oct 2010 11:19:52 +0000 (13:19 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Tue, 19 Oct 2010 11:19:52 +0000 (13:19 +0200)
doc/02-Twig-for-Template-Designers.markdown
doc/03-Twig-for-Developers.markdown

index 01e61ad..52d296b 100644 (file)
@@ -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) }}
index e973f6e..9dfb23b 100644 (file)
@@ -335,7 +335,7 @@ Twig 0.9.5 and above):
         [twig]
         {{ "Twig<br />" }} {# won't be escaped #}
 
-        {% set text as "Twig<br />" %}
+        {% set text = "Twig<br />" %}
         {{ text }} {# will be escaped #}
 
  * Escaping is applied before any other filter is applied (the reasoning