summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-30 12:06:59 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-30 12:06:59 +0200
commit50e1a489c04aaf204b1ead53a0013e1e96145844 (patch)
treeedbbf1b67a08f549b4193efc7d2bb37433d801b0 /compiler
parent4948cf3b4c6690c28ca46ba97b0cf1de178bd894 (diff)
downloadNim-50e1a489c04aaf204b1ead53a0013e1e96145844.tar.gz
commands.nim: use let instead of var
Diffstat (limited to 'compiler')
-rw-r--r--compiler/commands.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index 06b487cf0..9f265fd15 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -188,11 +188,11 @@ proc processSpecificNote*(arg: string, state: TSpecialWord, pass: TCmdLinePass,
   if i < len(arg) and (arg[i] in {':', '='}): inc(i)
   else: invalidCmdLineOption(pass, orig, info)
   if state == wHint:
-    var x = findStr(msgs.HintsToStr, id)
+    let x = findStr(msgs.HintsToStr, id)
     if x >= 0: n = TNoteKind(x + ord(hintMin))
     else: localError(info, "unknown hint: " & id)
   else:
-    var x = findStr(msgs.WarningsToStr, id)
+    let x = findStr(msgs.WarningsToStr, id)
     if x >= 0: n = TNoteKind(x + ord(warnMin))
     else: localError(info, "unknown warning: " & id)
   case substr(arg, i).normalize