summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-04-23 17:13:25 +0200
committerAraq <rumpf_a@web.de>2011-04-23 17:13:25 +0200
commit86e1408a39f13a34100f2bd090fdc2f17ae2a6ba (patch)
tree533852cd3fa43fa7a7e6046cbfaadb6dc548fbc3 /lib/system.nim
parent4ba4999bb7b172b683cf7b8d574adbf04afa7527 (diff)
downloadNim-86e1408a39f13a34100f2bd090fdc2f17ae2a6ba.tar.gz
slight change in the spec of unary '..'
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-xlib/system.nim4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/system.nim b/lib/system.nim
index cfe97eab9..815d14fa4 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -128,9 +128,7 @@ proc `..`*[T](a, b: T): TSlice[T] {.noSideEffect, inline.} =
   result.b = b
 
 proc `..`*[T](b: T): TSlice[T] {.noSideEffect, inline.} =
-  ## `slice`:idx: operator that constructs an interval ``[low(T), b]``
-  when int(low(b)) == low(int): result.a = 0
-  else: result.a = low(b)
+  ## `slice`:idx: operator that constructs an interval ``[default(T), b]``
   result.b = b
 
 proc contains*[T](s: TSlice[T], value: T): bool {.noSideEffect, inline.} =