diff options
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 6f594cd6d70..1ff4728f472 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -110,7 +110,8 @@ pure fn binop_to_method_name(op: binop) -> Option<~str> { ge => return Some(~"ge"), gt => return Some(~"gt"), eq => return Some(~"eq"), - and | or | ne => return None + ne => return Some(~"ne"), + and | or => return None } } |
