mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 13:11:11 +00:00
Update error.rs
This commit is contained in:
parent
4a46c09648
commit
a4406e38ef
1 changed files with 5 additions and 5 deletions
|
@ -89,9 +89,9 @@ pub fn binop_to_dname(op: &str) -> &str {
|
|||
"<.." => "__lorng__",
|
||||
"..<" => "__rorng__",
|
||||
"<..<" => "__orng__",
|
||||
"&&" | "and" => "__and__",
|
||||
"||" | "or" => "__or__",
|
||||
"^^" => "__xor__",
|
||||
"&&" | "&" | "and" => "__and__",
|
||||
"||" | "|" | "or" => "__or__",
|
||||
"^^" | "^" => "__xor__",
|
||||
"in" => "__in__",
|
||||
"notin" => "__notin__", // NOTE: this doesn't exist in Python
|
||||
"contains" => "__contains__",
|
||||
|
@ -134,8 +134,8 @@ pub fn readable_name(name: &str) -> &str {
|
|||
"__lorng__" => "`<..`",
|
||||
"__rorng__" => "`..<`",
|
||||
"__orng__" => "`<..<`",
|
||||
"__and__" => "`and`",
|
||||
"__or__" => "`or`",
|
||||
"__and__" => "`and`", // TODO: `&&` if not boolean
|
||||
"__or__" => "`or`", // TODO: `||` if not boolean
|
||||
"__in__" => "`in`",
|
||||
"__notin__" => "`notin`",
|
||||
"__contains__" => "`contains`",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue