summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2019-12-18 21:29:45 +0800
committerAndreas Rumpf <rumpf_a@web.de>2019-12-18 14:29:45 +0100
commitcb0a20b9b4521be066f5878f77c224540f73f779 (patch)
tree82411e60d69fcb50f7d617cccffd52fe786aa481 /lib/system
parent3c38edf56335926b6a9d7ef317422144b8d3f197 (diff)
downloadNim-cb0a20b9b4521be066f5878f77c224540f73f779.tar.gz
fix error in assertions document (#12925) [backport]
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/assertions.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/assertions.nim b/lib/system/assertions.nim
index e0110d5c0..cb1f3fd40 100644
--- a/lib/system/assertions.nim
+++ b/lib/system/assertions.nim
@@ -44,7 +44,7 @@ template assert*(cond: untyped, msg = "") =
   ## to be caught by unit testing frameworks.
   ##
   ## The compiler may not generate any code at all for ``assert`` if it is
-  ## advised to do so through the ``-d:release`` or ``--assertions:off``
+  ## advised to do so through the ``-d:danger`` or ``--assertions:off``
   ## `command line switches <nimc.html#compiler-usage-command-line-switches>`_.
   const expr = astToStr(cond)
   assertImpl(cond, msg, expr, compileOption("assertions"))