diff --git a/sphinx_doc_src/cmds/printf.rst b/sphinx_doc_src/cmds/printf.rst index bb67c0e5e..b6d82b369 100644 --- a/sphinx_doc_src/cmds/printf.rst +++ b/sphinx_doc_src/cmds/printf.rst @@ -20,23 +20,23 @@ Unlike :ref:`echo `, ``printf`` does not append a new line unless it i 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 "%".