diff options
author | Araq <rumpf_a@web.de> | 2019-07-10 23:55:56 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-07-10 23:55:56 +0200 |
commit | 38bdf1cd7f4d5c6e22a70ee32438beccc7e36690 (patch) | |
tree | 7661bad127a6c489e2047dbcd54e2268d5000ec0 /compiler | |
parent | b2f944789630250cb4cc38f9f6b0a063d6e8a703 (diff) | |
download | Nim-38bdf1cd7f4d5c6e22a70ee32438beccc7e36690.tar.gz |
minor style changes
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/linter.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/linter.nim b/compiler/linter.nim index 2d2baeff5..9aa2272f2 100644 --- a/compiler/linter.nim +++ b/compiler/linter.nim @@ -110,7 +110,7 @@ proc differs(conf: ConfigRef; info: TLineInfo; newName: string): string = #inc first, skipIgnoreCase(line, "proc ", first) while first > 0 and line[first-1] in Letters: dec first if first < 0: return - if line[first] == '`': inc first + if first+1 < line.len and line[first] == '`': inc first let last = first+identLen(line, first)-1 result = differ(line, first, last, newName) |