mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 03:16:34 +00:00
minor #1290 [Docs] Fix example: space missing between concatenated strings (GromNaN)
This PR was merged into the 1.15-dev branch.
Discussion
----------
[Docs] Fix example: space missing between concatenated strings
The expression `'Hello'~'Fabien'` produces `'HelloFabien'`, not `'Hello Fabien'`. I've just added a space after `'Hello'`.
Commits
-------
d6e0357 Fix doc example: space missing between concatenated strings
This commit is contained in:
+1
-1
@@ -558,7 +558,7 @@ even if you're not working with PHP you should feel comfortable with it.
|
||||
|
||||
.. code-block:: jinja
|
||||
|
||||
{% set greeting = 'Hello' %}
|
||||
{% set greeting = 'Hello ' %}
|
||||
{% set name = 'Fabien' %}
|
||||
|
||||
{{ greeting ~ name|lower }} {# Hello fabien #}
|
||||
|
||||
Reference in New Issue
Block a user