Rename FnWrongDefinition to WrongFnDefinition.

This commit is contained in:
Stephen Chung
2021-03-30 11:39:00 +08:00
parent d2ded7733a
commit d756b7bac6
5 changed files with 6 additions and 5 deletions

View File

@@ -875,7 +875,7 @@ pub fn parse_string_literal(
match next_char {
// \r - ignore if followed by \n
'\r' if stream.peek_next().unwrap_or('\0') == '\n' => {}
'\r' if stream.peek_next().map(|ch| ch == '\n').unwrap_or(false) => {}
// \...
'\\' if escape.is_empty() && !verbatim => {
escape.push('\\');