diff options
author | Araq <rumpf_a@web.de> | 2014-08-31 02:46:13 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-08-31 02:46:13 +0200 |
commit | 8925d0e10335c8ae7671b7fb19f25a6f0a1802d3 (patch) | |
tree | 7baeefdabf7c3bdcceaa572a4127b6cdd8fc538f /compiler/pretty.nim | |
parent | 31db3aeadefb73831b4fa27b1a1118acd5aa6134 (diff) | |
download | Nim-8925d0e10335c8ae7671b7fb19f25a6f0a1802d3.tar.gz |
minor improvement for nim pretty
Diffstat (limited to 'compiler/pretty.nim')
-rw-r--r-- | compiler/pretty.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/pretty.nim b/compiler/pretty.nim index 356399c1c..321c19502 100644 --- a/compiler/pretty.nim +++ b/compiler/pretty.nim @@ -90,10 +90,10 @@ proc beautifyName(s: string, k: TSymKind): string = result.add s[i] inc i -proc checkStyle*(info: TLineInfo, s: string, k: TSymKind) = +proc checkStyle(info: TLineInfo, s: string, k: TSymKind) = let beau = beautifyName(s, k) if s != beau: - message(info, errGenerated, "name should be: " & beau) + message(info, hintName, beau) proc checkDef*(n: PNode; s: PSym) = # operators stay as they are: |