minor #4018 Update coding_standards.rst: "one (and only one)" => "exactly one" (ThomasLandauer)

This PR was merged into the 3.x branch.

Discussion
----------

Update coding_standards.rst: "one (and only one)" => "exactly one"

Page: https://twig.symfony.com/doc/3.x/coding_standards.html

Commits
-------

97df38b3 Update coding_standards.rst: "one (and only one)" => "exactly one"
This commit is contained in:
Fabien Potencier
2024-04-13 19:17:21 +02:00
+3 -3
View File
@@ -10,7 +10,7 @@ Coding Standards
When writing Twig templates, we recommend you to follow these official coding
standards:
* Put one (and only one) space after the start of a delimiter (``{{``, ``{%``,
* Put exactly one space after the start of a delimiter (``{{``, ``{%``,
and ``{#``) and before the end of a delimiter (``}}``, ``%}``, and ``#}``):
.. code-block:: twig
@@ -28,7 +28,7 @@ standards:
{#- comment -#}
{%- if foo -%}{%- endif -%}
* Put one (and only one) space before and after the following operators:
* Put exactly one space before and after the following operators:
comparison operators (``==``, ``!=``, ``<``, ``>``, ``>=``, ``<=``), math
operators (``+``, ``-``, ``/``, ``*``, ``%``, ``//``, ``**``), logic
operators (``not``, ``and``, ``or``), ``~``, ``is``, ``in``, and the ternary
@@ -40,7 +40,7 @@ standards:
{{ foo ~ bar }}
{{ true ? true : false }}
* Put one (and only one) space after the ``:`` sign in hashes and ``,`` in
* Put exactly one space after the ``:`` sign in hashes and ``,`` in
arrays and hashes:
.. code-block:: twig