Skip to content

Commit cb0a20b

Browse files
ringaboutAraq
authored andcommitted
fix error in assertions document (#12925) [backport]
1 parent 3c38edf commit cb0a20b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/system/assertions.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ template assert*(cond: untyped, msg = "") =
4444
## to be caught by unit testing frameworks.
4545
##
4646
## The compiler may not generate any code at all for ``assert`` if it is
47-
## advised to do so through the ``-d:release`` or ``--assertions:off``
47+
## advised to do so through the ``-d:danger`` or ``--assertions:off``
4848
## `command line switches <nimc.html#compiler-usage-command-line-switches>`_.
4949
const expr = astToStr(cond)
5050
assertImpl(cond, msg, expr, compileOption("assertions"))

0 commit comments

Comments
 (0)