Skip to content

Commit

Permalink
Merge pull request #357 from HigherOrderCO/redex-pri-printing
Browse files Browse the repository at this point in the history
Fix printing of "!" in redexes
  • Loading branch information
developedby authored May 28, 2024
2 parents 9e437c0 + 6861ad0 commit 3c3af24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ impl Net {
pub fn show(&self) -> String {
let mut s = self.root.show();
for (par, fst, snd) in &self.rbag {
s.push_str(" & ");
s.push_str(if *par { "!" } else { "" });
s.push_str(" &");
s.push_str(if *par { "!" } else { " " });
s.push_str(&fst.show());
s.push_str(" ~ ");
s.push_str(&snd.show());
Expand Down

0 comments on commit 3c3af24

Please sign in to comment.