mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
Merge pull request #1421 from felixonmars/patch-1
Correct some typos in printf.rs
This commit is contained in:
commit
deda30e3f5
1 changed files with 2 additions and 2 deletions
|
@ -173,10 +173,10 @@ static LONGHELP_BODY: &str = "
|
||||||
%s - string
|
%s - string
|
||||||
|
|
||||||
%b - escaped string - the string will be checked for any escaped literals from
|
%b - escaped string - the string will be checked for any escaped literals from
|
||||||
the escaped literal list above, and translate them to literal charcters.
|
the escaped literal list above, and translate them to literal characters.
|
||||||
e.g. \\n will be transformed into a newline character.
|
e.g. \\n will be transformed into a newline character.
|
||||||
|
|
||||||
One special rule about %b mode is that octal literals are intepreted differently
|
One special rule about %b mode is that octal literals are interpreted differently
|
||||||
In arguments passed by %b, pass octal-interpreted literals must be in the form of \\0NNN
|
In arguments passed by %b, pass octal-interpreted literals must be in the form of \\0NNN
|
||||||
instead of \\NNN. (Although, for legacy reasons, octal literals in the form of \\NNN will
|
instead of \\NNN. (Although, for legacy reasons, octal literals in the form of \\NNN will
|
||||||
still be interpreted and not throw a warning, you will have problems if you use this for a
|
still be interpreted and not throw a warning, you will have problems if you use this for a
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue