summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-11-12 14:59:48 +0800
committerGitHub <noreply@github.com>2021-11-12 07:59:48 +0100
commit3aaa12dbe5796cc55c6161e4d30a70a7f75cb3b5 (patch)
treec313893cd11732e56e79594b74d8c695cca26096 /doc
parent528ef6c218d90653f0f814c3dd256caa2cc389dc (diff)
downloadNim-3aaa12dbe5796cc55c6161e4d30a70a7f75cb3b5.tar.gz
update manual (#19130) [backport]
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual.rst b/doc/manual.rst
index 001402036..328035b6d 100644
--- a/doc/manual.rst
+++ b/doc/manual.rst
@@ -6721,11 +6721,11 @@ statement, as seen in stack backtraces:
     if not cond:
       # change run-time line information of the 'raise' statement:
       {.line: instantiationInfo().}:
-        raise newException(EAssertionFailed, msg)
+        raise newException(AssertionDefect, msg)
 
 If the `line` pragma is used with a parameter, the parameter needs be a
 `tuple[filename: string, line: int]`. If it is used without a parameter,
-`system.InstantiationInfo()` is used.
+`system.instantiationInfo()` is used.
 
 
 linearScanEnd pragma