diff --git a/spec/expr.typ b/spec/expr.typ index 8b207fd4b..d5a2e4d8d 100644 --- a/spec/expr.typ +++ b/spec/expr.typ @@ -129,7 +129,7 @@ if type(typ) == array { check_array_type(typ) return raw(typ.at(0) + "[" + str(typ.at(1)) + "]") - } else if type(typ) == string { + } else if type(typ) == str { return raw(typ) } else { assert(false, message: "Unknown format for type: " + repr(typ))