minor #2754 Improved the code of an example (javiereguiluz)

This PR was merged into the 1.x branch.

Discussion
----------

Improved the code of an example

The original code contains an unneeded *"pop culture"* reference. For those unaware of it, it contains two strong words ("kill" and "bastard").

The concern about this example was firstly raised in the `#diversity` channel of [Symfony Slack](https://symfony.com/support).

Commits
-------

f07a876d Improved the code of an example
This commit is contained in:
Fabien Potencier
2018-09-27 16:33:24 +02:00
+5 -5
View File
@@ -50,12 +50,12 @@ use more complex ``expressions`` there too:
.. code-block:: jinja
{% if kenny.sick %}
Kenny is sick.
{% elseif kenny.dead %}
You killed Kenny! You bastard!!!
{% if product.stock > 10 %}
Available
{% elseif product.stock > 0 %}
Only {{ product.stock }} left!
{% else %}
Kenny looks okay --- so far
Sold-out!
{% endif %}
.. note::