Fix example in manual for line pragma (#10468)
This commit is contained in:
parent
7533f3bcbd
commit
4f0c3274ee
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue