mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-28 07:31:14 -03:00
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:
@@ -20,23 +20,23 @@ Unlike :ref:`echo <cmd-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 "%".
|
||||
|
||||
|
||||
Reference in New Issue
Block a user