summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-12-03 10:32:59 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-12-03 10:32:59 +0100
commitaf4f6ac123d6bb116c6e614a4107cfecaef3ae24 (patch)
tree17116bb893a63e90fd2baa7275cec2abdd0eeb91 /lib
parent760242b870eb2c9054ef31489abbb230bb56eb72 (diff)
parent16b2f4a76f452bbbeca3b37b17bd164939a0a8c6 (diff)
downloadNim-af4f6ac123d6bb116c6e614a4107cfecaef3ae24.tar.gz
Merge pull request #3620 from sqwishy/low-high-example-typo
Using low() instead of high() in example for low() procedure
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim4
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.