summary refs log tree commit diff stats
path: root/doc/manual.rst
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2019-01-27 21:59:33 +0530
committerMiran <narimiran@disroot.org>2019-01-27 17:29:33 +0100
commit4f0c3274ee96bbefe716f8725b0975799b7663b9 (patch)
tree12330da4ee31c0cf2bb6b7916e8617ccb72cd0c8 /doc/manual.rst
parent7533f3bcbd1990badce757ad3c318211a6866303 (diff)
downloadNim-4f0c3274ee96bbefe716f8725b0975799b7663b9.tar.gz
Fix example in manual for line pragma (#10468)
Diffstat (limited to 'doc/manual.rst')
-rw-r--r--doc/manual.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual.rst b/doc/manual.rst
index 09b9b4d78..f8a588791 100644
--- a/doc/manual.rst
+++ b/doc/manual.rst
@@ -6922,7 +6922,7 @@ statement as seen in stack backtraces:
   template myassert*(cond: untyped, msg = "") =
     if not cond:
       # change run-time line information of the 'raise' statement:
-      {.line: InstantiationInfo().}:
+      {.line: instantiationInfo().}:
         raise newException(EAssertionFailed, msg)
 
 If the ``line`` pragma is used with a parameter, the parameter needs be a