summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2020-04-01 14:39:58 -0300
committerGitHub <noreply@github.com>2020-04-01 19:39:58 +0200
commit48169847265e13d3b12d670230ad6d33a9d384cc (patch)
tree8028b0bea953b5cecefb6ba4353546b529c19bdd /lib/system
parent484548c784f69cadc1f6480a24e99183a0e6a930 (diff)
downloadNim-48169847265e13d3b12d670230ad6d33a9d384cc.tar.gz
Documentation, add more examples (#13825)
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/assertions.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/assertions.nim b/lib/system/assertions.nim
index 13836a540..64ed44ea7 100644
--- a/lib/system/assertions.nim
+++ b/lib/system/assertions.nim
@@ -50,7 +50,7 @@ template assert*(cond: untyped, msg = "") =
   ## `command line switches <nimc.html#compiler-usage-command-line-switches>`_.
   ##
   ## .. code-block:: nim
-  ##   static: assert 1 == 9, "This works when not built with -d:danger or --assertions:off"
+  ##   static: assert 1 == 9, "This assertion generates code when not built with -d:danger or --assertions:off"
   const expr = astToStr(cond)
   assertImpl(cond, msg, expr, compileOption("assertions"))
 
@@ -58,7 +58,7 @@ template doAssert*(cond: untyped, msg = "") =
   ## Similar to ``assert`` but is always turned on regardless of ``--assertions``.
   ##
   ## .. code-block:: nim
-  ##   static: assert 1 == 9, "This works when built with/without -d:danger or --assertions:off"
+  ##   static: doAssert 1 == 9, "This assertion generates code when built with/without -d:danger or --assertions:off"
   const expr = astToStr(cond)
   assertImpl(cond, msg, expr, true)