From: Fabien Potencier Date: Thu, 25 Mar 2010 12:29:30 +0000 (+0100) Subject: updated documentation for the + operator (closes #30) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=49add7a61dc11dbd2b714ffe425dc86a64937543;p=web%2Fkonrad%2Ftwig.git updated documentation for the + operator (closes #30) --- diff --git a/doc/02-Twig-for-Template-Designers.markdown b/doc/02-Twig-for-Template-Designers.markdown index 7f780c2..93d35ff 100644 --- a/doc/02-Twig-for-Template-Designers.markdown +++ b/doc/02-Twig-for-Template-Designers.markdown @@ -804,10 +804,8 @@ exist: Twig allows you to calculate with values. This is rarely useful in templates but exists for completeness' sake. The following operators are supported: - * `+`: Adds two objects together. Usually the objects are numbers but if both - are strings or lists you can concatenate them this way. This however is not - the preferred way to concatenate strings! For string concatenation have a - look at the `~` operator. `{{ 1 + 1 }}` is `2`. + * `+`: Adds two objects together (the operands are casted to numbers). `{{ 1 + + 1 }}` is `2`. * `-`: Substract the second number from the first one. `{{ 3 - 2 }}` is `1`.