docs/printf: Don't double "%"

This might be a leftover from doxygen, but sphinx does *not* require
"%%" here to print "%", so it shows

    %%d

instead of the correct

    %d

[ci skip]
This commit is contained in:
Fabian Homborg 2019-12-20 16:58:58 +01:00
parent dcf8b0e3aa
commit 17b499d2ea

View file

@ -20,23 +20,23 @@ Unlike :ref:`echo <cmd-echo>`, ``printf`` does not append a new line unless it i
Valid format specifiers are: Valid format specifiers are:
- ``%%d``: Argument will be used as decimal integer (signed or unsigned) - ``%d``: Argument will be used as decimal integer (signed or unsigned)
- ``%%i``: Argument will be used as a signed integer - ``%i``: Argument will be used as a signed integer
- ``%%o``: An octal unsigned integer - ``%o``: An octal unsigned integer
- ``%%u``: An unsigned decimal integer - ``%u``: An unsigned decimal integer
- ``%%x`` or ``%%X``: An unsigned hexadecimal integer - ``%x`` or ``%X``: An unsigned hexadecimal integer
- ``%%f``, ``%%g`` or ``%%G``: A floating-point number - ``%f``, ``%g`` or ``%G``: A floating-point number
- ``%%e`` or ``%%E``: A floating-point number in scientific (XXXeYY) notation - ``%e`` or ``%E``: A floating-point number in scientific (XXXeYY) notation
- ``%%s``: A string - ``%s``: A string
- ``%%b``: As a string, interpreting backslash escapes, except that octal escapes are of the form \0 or \0ooo. - ``%b``: As a string, interpreting backslash escapes, except that octal escapes are of the form \0 or \0ooo.
``%%`` signifies a literal "%". ``%%`` signifies a literal "%".