added warning for confusing var declarations

This commit is contained in:
Araq 2012-07-26 08:47:54 +02:00
commit 2ff8d17369
5 changed files with 19 additions and 7 deletions

View file

@ -284,8 +284,8 @@ proc genSection(d: PDoc, kind: TSymKind) =
ord(kind).toRope, title, toRope(ord(kind) + 50), d.toc[kind]])
proc genOutFile(d: PDoc): PRope =
var
code, content: PRope = nil
var
code, content: PRope
title = ""
var j = 0
var tmp = ""