Skip to content

Commit

Permalink
Updated Boolean guidance and a bug fix (#551)
Browse files Browse the repository at this point in the history
* Updated Boolean guidance and a bug fix

* Update to Boolean entry
  • Loading branch information
julian-cable committed Dec 22, 2023
1 parent 1fb8f6c commit e1f9e88
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions en-US/B.xml
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,18 @@
Correct. Named after George Boole, who first developed the concept.
</para>
<para>
According to the <citetitle>IBM Style Guide</citetitle>, it is acceptable to use "boolean" in API programming information when it refers to a primitive return type.
According to the <citetitle>IBM Style Guide</citetitle>, it is acceptable to use "boolean" (lowercase) in API programming information when it refers to a primitive return type.
</para>

<para>
To set Boolean values in YAML files, use <varname>true</varname> or <varname>false</varname>, written lowercase, rather than <varname>yes</varname> or <varname>no</varname>, because YAML&nbsp;1.2 and later versions do not support the latter syntax.
</para>
<para>
For example, the following scenario specifies that a task is run only one time:
</para>
<screen>- name: Pause 30 seconds
ansible.builtin.pause:
seconds: 30
<userinput>run_once: true</userinput></screen>
</listitem>

</varlistentry>
Expand Down
2 changes: 1 addition & 1 deletion en-US/Grammar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ Split contractions and abbreviations into separate paragraphs. -->
<title>Contractions and Abbreviations</title>
<para>
Do not use contractions in Red&nbsp;Hat documents.
For example, do not use can't, "don't", "won't", and similar examples.
For example, do not use "can't", "don't", "won't", and similar examples.
Write out the words in full.
Contractions are a mark of informal writing, and should be avoided when writing technical documentation or other more formal types of manuals.
They can also cause problems for translation.
Expand Down

0 comments on commit e1f9e88

Please sign in to comment.