summary refs log tree commit diff stats
path: root/compiler/idents.nim
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2019-05-07 12:37:28 +0200
committerClyybber <darkmine956@gmail.com>2019-05-07 12:37:28 +0200
commitcc28eef38e601171644ffe1a2775744eaaca8123 (patch)
tree720cfdcb95072394a62d365cc18f7b6c71ffe031 /compiler/idents.nim
parentf18b3af9d4a6393ba988cdb17d8f0861b1c75c7d (diff)
downloadNim-cc28eef38e601171644ffe1a2775744eaaca8123.tar.gz
Replace countup(x, y) with x .. y
Diffstat (limited to 'compiler/idents.nim')
-rw-r--r--compiler/idents.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/idents.nim b/compiler/idents.nim
index 80dc6e591..f82ff5db5 100644
--- a/compiler/idents.nim
+++ b/compiler/idents.nim
@@ -110,7 +110,7 @@ proc newIdentCache*(): IdentCache =
   result.idDelegator = result.getIdent":delegator"
   result.emptyIdent = result.getIdent("")
   # initialize the keywords:
-  for s in countup(succ(low(specialWords)), high(specialWords)):
+  for s in succ(low(specialWords)) .. high(specialWords):
     result.getIdent(specialWords[s], hashIgnoreStyle(specialWords[s])).id = ord(s)
 
 proc whichKeyword*(id: PIdent): TSpecialWord =