mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-24 10:41:57 +03:00
hotfix:ast:conditional statement display method
This commit is contained in:
parent
d6c3aec431
commit
85b47651a5
@ -31,7 +31,7 @@ impl fmt::Display for ConditionalStatement {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "if ({}) {}", self.condition, self.block)?;
|
||||
match self.next.clone() {
|
||||
Some(n_or_e) => write!(f, " {}", n_or_e),
|
||||
Some(n_or_e) => write!(f, " else {}", n_or_e),
|
||||
None => write!(f, ""),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user