diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-05-24 19:50:00 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-24 19:50:00 -0600 |
| commit | 989c8e86e16ddfa146cd3ba2557d9becb2841a89 (patch) | |
| tree | 30ec217cf06311a8aab26d476f159b1a5ed38e52 /src/libsyntax/parse | |
| parent | 43d81a8c95d053940df5175a24b8907a07606f79 (diff) | |
| parent | 9ad0dbab5b134592141efdcc93d37ea6a65e425f (diff) | |
| download | rust-989c8e86e16ddfa146cd3ba2557d9becb2841a89.tar.gz rust-989c8e86e16ddfa146cd3ba2557d9becb2841a89.zip | |
Rollup merge of #42120 - euclio:unicode, r=arielb1
remove "much" from unicode diagnostic The English seems slightly awkward to me, and it's unnecessary.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/lexer/unicode_chars.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer/unicode_chars.rs b/src/libsyntax/parse/lexer/unicode_chars.rs index 4df23da3c9c..83a164bdb96 100644 --- a/src/libsyntax/parse/lexer/unicode_chars.rs +++ b/src/libsyntax/parse/lexer/unicode_chars.rs @@ -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); }, |
