mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00: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:
parent
dcf8b0e3aa
commit
17b499d2ea
1 changed files with 9 additions and 9 deletions
|
@ -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 "%".
|
||||
|
||||
|
|
Loading…
Reference in a new issue