1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-30 09:03:15 +00:00

Fix getline not being pretty printed properly.

This commit is contained in:
Calvin Rose 2018-06-26 13:57:49 -04:00
parent 9805bfb635
commit 90b685f8f4

View File

@ -418,7 +418,7 @@ const uint8_t *dst_description(Dst x) {
case DST_CFUNCTION: case DST_CFUNCTION:
{ {
Dst check = dst_table_get(dst_vm_registry, x); Dst check = dst_table_get(dst_vm_registry, x);
if (!dst_checktype(x, DST_NIL)) { if (dst_checktype(check, DST_SYMBOL)) {
return dst_formatc("<cfunction %V>", check); return dst_formatc("<cfunction %V>", check);
} }
goto fallthrough; goto fallthrough;