summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJohn Scillieri <john.scillieri@visionistinc.com>2017-04-05 17:50:48 -0400
committerAndreas Rumpf <rumpf_a@web.de>2017-04-05 23:50:48 +0200
commit4ba6f9808e057928b14ca89ae065154b0c5559b2 (patch)
tree397cba48abc59fcec1673024555a4b6be85158fc
parent88c4d6aabed415150068b440ce8860644aa56152 (diff)
downloadNim-4ba6f9808e057928b14ca89ae065154b0c5559b2.tar.gz
Update 'compiles' documentation to remove not (#5666)
Documentation for proc compiles showed a broken/unintuitive example (unless i missed something)
-rw-r--r--lib/system.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 3d5e5f972..82d3bb7f7 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -3663,7 +3663,7 @@ proc compiles*(x: untyped): bool {.magic: "Compiles", noSideEffect, compileTime.
   ## This can be used to check whether a type supports some operation:
   ##
   ## .. code-block:: Nim
-  ##   when not compiles(3 + 4):
+  ##   when compiles(3 + 4):
   ##     echo "'+' for integers is available"
   discard