slight change in the spec of unary '..'
This commit is contained in:
parent
4ba4999bb7
commit
86e1408a39
1 changed files with 1 additions and 3 deletions
|
|
@ -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.} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue