From f4b5d6c88169a40be8281ed7616a89784a29954c Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Fri, 23 Aug 2019 00:43:03 +0800 Subject: [PATCH] Correct some typos in printf.rs --- src/printf/printf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/printf/printf.rs b/src/printf/printf.rs index 1842f8831..68504e77e 100644 --- a/src/printf/printf.rs +++ b/src/printf/printf.rs @@ -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