correctly print [] functors (#1189)
This commit is contained in:
@@ -1358,7 +1358,7 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
|
|||||||
|
|
||||||
read_heap_cell!(addr,
|
read_heap_cell!(addr,
|
||||||
(HeapCellValueTag::Atom, (name, arity)) => {
|
(HeapCellValueTag::Atom, (name, arity)) => {
|
||||||
if name == atom!("[]") {
|
if name == atom!("[]") && arity == 0 {
|
||||||
if !self.at_cdr("") {
|
if !self.at_cdr("") {
|
||||||
append_str!(self, "[]");
|
append_str!(self, "[]");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user