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, "[]"); }