Merge pull request #1394 from PavelVozenilek/patch-2

typo fix
This commit is contained in:
Andreas Rumpf 2014-07-22 20:12:36 +02:00
commit 024de25368

View file

@ -783,7 +783,7 @@ proc contains*[T](s: TSlice[T], value: T): bool {.noSideEffect, inline.} =
result = s.a <= value and value <= s.b result = s.a <= value and value <= s.b
template `in` * (x, y: expr): expr {.immediate.} = contains(y, x) template `in` * (x, y: expr): expr {.immediate.} = contains(y, x)
## Suger for contains ## Sugar for contains
## ##
## .. code-block:: Nimrod ## .. code-block:: Nimrod
## assert(1 in (1..3) == true) ## assert(1 in (1..3) == true)