Skip to content

Commit

Permalink
fix error in assertions document (nim-lang#12925) [backport]
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored and Araq committed Dec 18, 2019
1 parent 3c38edf commit cb0a20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system/assertions.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit cb0a20b

Please sign in to comment.