From 4ba6f9808e057928b14ca89ae065154b0c5559b2 Mon Sep 17 00:00:00 2001 From: John Scillieri Date: Wed, 5 Apr 2017 17:50:48 -0400 Subject: [PATCH] Update 'compiles' documentation to remove not (#5666) Documentation for proc compiles showed a broken/unintuitive example (unless i missed something) --- lib/system.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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