Skip to content

Commit

Permalink
minor #2754 Improved the code of an example (javiereguiluz)
Browse files Browse the repository at this point in the history
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
-------

f07a876 Improved the code of an example
  • Loading branch information
fabpot committed Sep 27, 2018
2 parents 1e99fb4 + f07a876 commit 4eea72c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/tags/if.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down

0 comments on commit 4eea72c

Please sign in to comment.