slight change in the spec of unary '..'

This commit is contained in:
Araq
2011-04-23 17:13:25 +02:00
parent 4ba4999bb7
commit 86e1408a39

View File

@@ -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.} =