diff options
author | Sqwishy Trick <sqwishybon@gmail.com> | 2015-12-02 20:59:34 -0800 |
---|---|---|
committer | Sqwishy Trick <sqwishybon@gmail.com> | 2015-12-02 20:59:34 -0800 |
commit | 16b2f4a76f452bbbeca3b37b17bd164939a0a8c6 (patch) | |
tree | 17116bb893a63e90fd2baa7275cec2abdd0eeb91 /lib | |
parent | 760242b870eb2c9054ef31489abbb230bb56eb72 (diff) | |
download | Nim-16b2f4a76f452bbbeca3b37b17bd164939a0a8c6.tar.gz |
Using low() instead of high() in example for low() procedure
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim index 2fb18fb51..ce7687c34 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -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. |