1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Correct some typos in printf.rs

This commit is contained in:
Felix Yan 2019-08-23 00:43:03 +08:00 committed by GitHub
parent 17035666b8
commit f4b5d6c881
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 %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