Skip to content

Commit e1f9e88

Browse files
authored
Updated Boolean guidance and a bug fix (#551)
* Updated Boolean guidance and a bug fix * Update to Boolean entry
1 parent 1fb8f6c commit e1f9e88

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

en-US/B.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,18 @@
227227
Correct. Named after George Boole, who first developed the concept.
228228
</para>
229229
<para>
230-
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.
230+
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.
231231
</para>
232-
232+
<para>
233+
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.
234+
</para>
235+
<para>
236+
For example, the following scenario specifies that a task is run only one time:
237+
</para>
238+
<screen>- name: Pause 30 seconds
239+
ansible.builtin.pause:
240+
seconds: 30
241+
<userinput>run_once: true</userinput></screen>
233242
</listitem>
234243

235244
</varlistentry>

en-US/Grammar.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ Split contractions and abbreviations into separate paragraphs. -->
932932
<title>Contractions and Abbreviations</title>
933933
<para>
934934
Do not use contractions in Red&nbsp;Hat documents.
935-
For example, do not use can't, "don't", "won't", and similar examples.
935+
For example, do not use "can't", "don't", "won't", and similar examples.
936936
Write out the words in full.
937937
Contractions are a mark of informal writing, and should be avoided when writing technical documentation or other more formal types of manuals.
938938
They can also cause problems for translation.

0 commit comments

Comments
 (0)