reprjs: style changes
This commit is contained in:
parent
a3df1b55f3
commit
fdcea66fd9
1 changed files with 12 additions and 12 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue