fix error in assertions document (#12925) [backport]

(cherry picked from commit cb0a20b9b4)
This commit is contained in:
flywind
2019-12-18 21:29:45 +08:00
committed by narimiran
parent 7c4bc63b00
commit 9167eb6c89

View File

@@ -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"))