mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
Using low() instead of high() in example for low() procedure
This commit is contained in:
@@ -232,8 +232,8 @@ proc low*[T](x: T): T {.magic: "Low", noSideEffect.}
|
||||
##
|
||||
## .. code-block:: nim
|
||||
## var arr = [1,2,3,4,5,6,7]
|
||||
## high(arr) #=> 0
|
||||
## high(2) #=> -9223372036854775808
|
||||
## low(arr) #=> 0
|
||||
## low(2) #=> -9223372036854775808
|
||||
|
||||
type
|
||||
range*{.magic: "Range".}[T] ## Generic type to construct range types.
|
||||
|
||||
Reference in New Issue
Block a user