fix typo in try_from_partial_string

This commit is contained in:
Mark Thom
2025-04-20 00:07:55 -07:00
committed by Mark Thom
parent 995a39419a
commit e1e52338d6

View File

@@ -1332,7 +1332,7 @@ impl MachineState {
let end_cell = heap_pstr_iter.heap[heap_pstr_iter.focus()];
if heap_pstr_iter.is_cyclic() || end_cell == empty_list_as_cell!() {
if heap_pstr_iter.is_cyclic() || end_cell != empty_list_as_cell!() {
let err = self.type_error(ValidType::List, a1);
return Err(self.error_form(err, stub_gen()));
}