fix error in assertions document (#12925) [backport]
This commit is contained in:
parent
3c38edf563
commit
cb0a20b9b4
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ template assert*(cond: untyped, msg = "") =
|
||||||
## to be caught by unit testing frameworks.
|
## to be caught by unit testing frameworks.
|
||||||
##
|
##
|
||||||
## The compiler may not generate any code at all for ``assert`` if it is
|
## 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>`_.
|
## `command line switches <nimc.html#compiler-usage-command-line-switches>`_.
|
||||||
const expr = astToStr(cond)
|
const expr = astToStr(cond)
|
||||||
assertImpl(cond, msg, expr, compileOption("assertions"))
|
assertImpl(cond, msg, expr, compileOption("assertions"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue