Skip to content

Commit

Permalink
remove "much" from unicode diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
euclio committed May 20, 2017
1 parent 0bd9e1f commit 9ad0dba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/lexer/unicode_chars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ pub fn check_for_substitution<'a>(reader: &StringReader<'a>,
match ASCII_ARRAY.iter().find(|&&(c, _)| c == ascii_char) {
Some(&(ascii_char, ascii_name)) => {
let msg =
format!("unicode character '{}' ({}) looks much like '{}' ({}), but it's not",
format!("unicode character '{}' ({}) looks like '{}' ({}), but it's not",
ch, u_name, ascii_char, ascii_name);
err.span_help(span, &msg);
},
Expand Down
3 changes: 1 addition & 2 deletions src/test/parse-fail/unicode-chars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
// except according to those terms.

// compile-flags: -Z parse-only
// ignore-tidy-linelength

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

0 comments on commit 9ad0dba

Please sign in to comment.