chore(error): wording

This commit is contained in:
GreasySlug 2023-04-18 22:36:42 +09:00
parent 1ff53f4669
commit 7004025f51

View file

@ -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 ")),