mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 20:17:42 +00:00
Fix example in manual for line pragma (#10468)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user