Browse code

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

Fabien Potencier authored on 27/09/2018 14:33:24
Showing 1 changed files
... ...
@@ -50,12 +50,12 @@ use more complex ``expressions`` there too:
50 50
 
51 51
 .. code-block:: jinja
52 52
 
53
-    {% if kenny.sick %}
54
-        Kenny is sick.
55
-    {% elseif kenny.dead %}
56
-        You killed Kenny! You bastard!!!
53
+    {% if product.stock > 10 %}
54
+       Available
55
+    {% elseif product.stock > 0 %}
56
+       Only {{ product.stock }} left!
57 57
     {% else %}
58
-        Kenny looks okay --- so far
58
+       Sold-out!
59 59
     {% endif %}
60 60
 
61 61
 .. note::