From cb0a20b9b4521be066f5878f77c224540f73f779 Mon Sep 17 00:00:00 2001 From: flywind <43030857+xflywind@users.noreply.github.com> Date: Wed, 18 Dec 2019 21:29:45 +0800 Subject: [PATCH] fix error in assertions document (#12925) [backport] --- lib/system/assertions.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/assertions.nim b/lib/system/assertions.nim index e0110d5c0d42..cb1f3fd40443 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 `_. const expr = astToStr(cond) assertImpl(cond, msg, expr, compileOption("assertions"))