1
Fork 0
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:
Sylvestre Ledru 2020-04-08 19:03:57 +02:00 committed by GitHub
commit deda30e3f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,10 +173,10 @@ static LONGHELP_BODY: &str = "
%s - string
%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.
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
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