summary refs log tree commit diff stats
path: root/lib/system/reprjs.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-10-29 08:55:30 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-10-29 08:55:30 +0100
commit6a3288a60e78c9b17f2640fff20ab94969914974 (patch)
tree5946b02ce048d67c70f99b8636c6afcd5c082cd4 /lib/system/reprjs.nim
parent70ea45cdbaa9d26a7196ab2718f60c9ca77e2d12 (diff)
downloadNim-6a3288a60e78c9b17f2640fff20ab94969914974.tar.gz
more replacements for the deprecated '<'
Diffstat (limited to 'lib/system/reprjs.nim')
-rw-r--r--lib/system/reprjs.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/system/reprjs.nim b/lib/system/reprjs.nim
index 5c265a891..12379042e 100644
--- a/lib/system/reprjs.nim
+++ b/lib/system/reprjs.nim
@@ -50,7 +50,7 @@ proc reprChar(x: char): string {.compilerRtl.} =
 
 proc reprStrAux(result: var string, s: cstring, len: int) =
   add(result, "\"")
-  for i in 0 .. <len:
+  for i in 0 ..< len:
     let c = s[i]
     case c
     of '"': add(result, "\\\"")
@@ -149,7 +149,7 @@ proc reprArray(a: pointer, typ: PNimType,
     
   {. emit: "`len` = `a`.length;\n" .}
   var dereffed: pointer = a
-  for i in 0 .. < len:
+  for i in 0 ..< len:
     if i > 0 :
       add(result, ", ")
     # advance pointer and point to element at index
@@ -192,7 +192,7 @@ proc reprRecordAux(result: var string, o: pointer, typ: PNimType, cl: var ReprCl
     reprAux(result, val, typ.node.typ, cl)
   else:
     # if the object has more than one field, sons is not nil and contains the fields.
-    for i in 0 .. <typ.node.len:
+    for i in 0 ..< typ.node.len:
       if first: first = false
       else: add(result, ",\n")