correctly print [] functors (#1189)

This commit is contained in:
Mark Thom
2022-01-10 17:26:57 -07:00
parent bcacb49c05
commit ef0b239e70

View File

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