docgen: fixes typo

This commit is contained in:
Araq
2018-10-02 16:15:19 +02:00
parent 621b2db2e8
commit 6f23b05c09

View File

@@ -765,7 +765,7 @@ proc generateDoc*(d: PDoc, n, orig: PNode) =
of nkCallKinds:
var comm: Rope = nil
getAllRunnableExamples(d, n, comm)
if comm > nil: add(d.modDesc, comm)
if comm != nil: add(d.modDesc, comm)
else: discard
proc add(d: PDoc; j: JsonNode) =