summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-09-15 00:23:27 +0200
committerAraq <rumpf_a@web.de>2018-09-15 00:23:27 +0200
commita34184bf88cc451f44c65f8e9afd6332080217ad (patch)
treed6726bc08a1701597e8c8c4a1a8c5b429375c299
parent9995f50050298dc435a237b29dd0ff258ba25b9b (diff)
downloadNim-a34184bf88cc451f44c65f8e9afd6332080217ad.tar.gz
documents system.cmp's platform specific behaviour; fixes #8930
-rw-r--r--lib/system.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim
index ef6138ad1..353500a4a 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1237,6 +1237,8 @@ proc cmp*[T](x, y: T): int {.procvar.} =
 
 proc cmp*(x, y: string): int {.noSideEffect, procvar.}
   ## Compare proc for strings. More efficient than the generic version.
+  ## **Note**: The precise result values depend on the used C runtime library and
+  ## can differ between operating systems!
 
 proc `@`* [IDX, T](a: array[IDX, T]): seq[T] {.
   magic: "ArrToSeq", nosideeffect.}