Skip to content

Commit ce42e6c

Browse files
Rollup merge of rust-lang#42120 - euclio:unicode, r=arielb1
remove "much" from unicode diagnostic The English seems slightly awkward to me, and it's unnecessary.
2 parents df9bf0a + 9ad0dba commit ce42e6c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/libsyntax/parse/lexer/unicode_chars.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ pub fn check_for_substitution<'a>(reader: &StringReader<'a>,
238238
match ASCII_ARRAY.iter().find(|&&(c, _)| c == ascii_char) {
239239
Some(&(ascii_char, ascii_name)) => {
240240
let msg =
241-
format!("unicode character '{}' ({}) looks much like '{}' ({}), but it's not",
241+
format!("unicode character '{}' ({}) looks like '{}' ({}), but it's not",
242242
ch, u_name, ascii_char, ascii_name);
243243
err.span_help(span, &msg);
244244
},

src/test/parse-fail/unicode-chars.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
// except according to those terms.
1010

1111
// compile-flags: -Z parse-only
12-
// ignore-tidy-linelength
1312

1413
fn main() {
1514
let y = 0;
1615
//~^ ERROR unknown start of token: \u{37e}
17-
//~^^ HELP unicode character ';' (Greek Question Mark) looks much like ';' (Semicolon), but it's not
16+
//~^^ HELP unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it's not
1817
}

0 commit comments

Comments
 (0)