mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-31 15:48:23 +00:00
chore(error): wording
This commit is contained in:
parent
1ff53f4669
commit
7004025f51
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ impl LexError {
|
|||
got: TokenKind,
|
||||
) -> LexError {
|
||||
let hint = switch_lang!(
|
||||
"japanese" => format!("{}が期待されましたが、{got}となっています", fmt_vec_split_with(expected, " または ")),
|
||||
"japanese" => format!("{}が期待されましたが、{got}が与えれられました", fmt_vec_split_with(expected, " または ")),
|
||||
"simplified_chinese" => format!("期待: {},得到: {got}", fmt_vec_split_with(expected, " 或 ")),
|
||||
"traditional_chinese" => format!("期待: {},得到: {got}", fmt_vec_split_with(expected, " 或 ")),
|
||||
"english" => format!("expect: {}, got: {got}", fmt_vec_split_with(expected, " or ")),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue