Use gender neutral language in documentation
This commit is contained in:
parent
37ff086c86
commit
a7f03e8d46
2 changed files with 6 additions and 6 deletions
|
|
@ -107,7 +107,7 @@ Unchecked pragma
|
||||||
----------------
|
----------------
|
||||||
The ``unchecked`` pragma can be used to mark a named array as ``unchecked``
|
The ``unchecked`` pragma can be used to mark a named array as ``unchecked``
|
||||||
meaning its bounds are not checked. This is often useful when one wishes to
|
meaning its bounds are not checked. This is often useful when one wishes to
|
||||||
implement his own flexibly sized arrays. Additionally an unchecked array is
|
implement their own flexibly sized arrays. Additionally an unchecked array is
|
||||||
translated into a C array of undetermined size:
|
translated into a C array of undetermined size:
|
||||||
|
|
||||||
.. code-block:: nim
|
.. code-block:: nim
|
||||||
|
|
|
||||||
10
doc/tut1.txt
10
doc/tut1.txt
|
|
@ -333,8 +333,8 @@ The while statement is a simple looping construct:
|
||||||
name = readLine(stdin)
|
name = readLine(stdin)
|
||||||
# no ``var``, because we do not declare a new variable here
|
# no ``var``, because we do not declare a new variable here
|
||||||
|
|
||||||
The example uses a while loop to keep asking the user for his name, as long as
|
The example uses a while loop to keep asking the user for their name, as long
|
||||||
he types in nothing (only presses RETURN).
|
as the user types in nothing (only presses RETURN).
|
||||||
|
|
||||||
|
|
||||||
For statement
|
For statement
|
||||||
|
|
@ -545,9 +545,9 @@ procedures are defined with the ``proc`` keyword:
|
||||||
echo("I think you know what the problem is just as well as I do.")
|
echo("I think you know what the problem is just as well as I do.")
|
||||||
|
|
||||||
This example shows a procedure named ``yes`` that asks the user a ``question``
|
This example shows a procedure named ``yes`` that asks the user a ``question``
|
||||||
and returns true if he answered "yes" (or something similar) and returns
|
and returns true if they answered "yes" (or something similar) and returns
|
||||||
false if he answered "no" (or something similar). A ``return`` statement leaves
|
false if they answered "no" (or something similar). A ``return`` statement
|
||||||
the procedure (and therefore the while loop) immediately. The
|
leaves the procedure (and therefore the while loop) immediately. The
|
||||||
``(question: string): bool`` syntax describes that the procedure expects a
|
``(question: string): bool`` syntax describes that the procedure expects a
|
||||||
parameter named ``question`` of type ``string`` and returns a value of type
|
parameter named ``question`` of type ``string`` and returns a value of type
|
||||||
``bool``. ``Bool`` is a built-in type: the only valid values for ``bool`` are
|
``bool``. ``Bool`` is a built-in type: the only valid values for ``bool`` are
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue