From ef0b239e7031cea7d7b6cfce6d7c18383afbea2b Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Mon, 10 Jan 2022 17:26:57 -0700 Subject: [PATCH] correctly print [] functors (#1189) --- src/heap_print.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heap_print.rs b/src/heap_print.rs index e1c4e214..f7ba606c 100644 --- a/src/heap_print.rs +++ b/src/heap_print.rs @@ -1358,7 +1358,7 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> { read_heap_cell!(addr, (HeapCellValueTag::Atom, (name, arity)) => { - if name == atom!("[]") { + if name == atom!("[]") && arity == 0 { if !self.at_cdr("") { append_str!(self, "[]"); } -- 2.54.0