reprjs: style changes

This commit is contained in:
Araq 2020-01-04 19:55:45 +01:00
commit fdcea66fd9

View file

@ -184,8 +184,8 @@ proc reprRef(result: var string, p: pointer, typ: PNimType,
proc reprRecordAux(result: var string, o: pointer, typ: PNimType, cl: var ReprClosure) = proc reprRecordAux(result: var string, o: pointer, typ: PNimType, cl: var ReprClosure) =
add(result, "[") add(result, "[")
var first: bool = true var first = true
var val: pointer = o var val = o
if typ.node.len == 0: if typ.node.len == 0:
# if the object has only one field, len is 0 and sons is nil, the field is in node # if the object has only one field, len is 0 and sons is nil, the field is in node
let key: cstring = typ.node.name let key: cstring = typ.node.name