minor refactoring and typos

This commit is contained in:
2023-05-25 19:40:15 -05:00
committed by cpunch
parent d1a16d990c
commit 3b13ae1624
6 changed files with 8 additions and 12 deletions

View File

@@ -705,7 +705,7 @@ void printObject(CObj *o)
switch (o->type) {
case COBJ_STRING: {
CObjString *objStr = (CObjString *)o;
printf("%.*s", objStr->length, objStr->str);
printf("<string> \"%.*s\"", objStr->length, objStr->str);
break;
}
case COBJ_OBJECT: {