Update error.rs

This commit is contained in:
Shunsuke Shibayama 2022-12-23 23:08:00 +09:00
parent bce00747af
commit 37a203e254

View file

@ -105,6 +105,8 @@ pub fn binop_to_dname(op: &str) -> &str {
"<=" => "__le__",
">" => "__gt__",
">=" => "__ge__",
"<<" => "__lshift__",
">>" => "__rshift__",
other => todo!("no such binary operator: {other}"),
}
}
@ -154,6 +156,8 @@ pub fn readable_name(name: &str) -> &str {
"__invert__" => "`~`",
"__mutate__" => "`!`",
"__spread__" => "`...`",
"__lshift__" => "`<<`",
"__rshift__" => "`>>`",
other => other,
}
}