diff src/ast_dump.rs @ 28:bc3437ecb12b

Add a test for unaryop and fix ast_dump for unaryop::Not.
author Bastien Orivel <eijebong@bananium.fr>
date Fri, 03 Jun 2016 23:59:41 +0200
parents 25b202005d1d
children e244c492ff07
line wrap: on
line diff
--- a/src/ast_dump.rs
+++ b/src/ast_dump.rs
@@ -35,7 +35,7 @@ impl unaryop {
     fn to_string(&self) -> &'static str {
         match *self {
             unaryop::Invert => "~",
-            unaryop::Not => "!",
+            unaryop::Not => "not ",
             unaryop::UAdd => "+",
             unaryop::USub => "-"
         }