Add display information to slice example

This commit is contained in:
Paul Mallet
2014-12-22 16:39:55 +01:00
parent b87cf88f88
commit d5fe41344b
+1 -1
View File
@@ -32,7 +32,7 @@ As syntactic sugar, you can also use the ``[]`` notation:
{# ... #} {# ... #}
{% endfor %} {% endfor %}
{{ '12345'[1:2] }} {{ '12345'[1:2] }} {# will display "23" #}
{# you can omit the first argument -- which is the same as 0 #} {# you can omit the first argument -- which is the same as 0 #}
{{ '12345'[:2] }} {# will display "12" #} {{ '12345'[:2] }} {# will display "12" #}