Fix example in manual for line pragma (#10468)

This commit is contained in:
Neelesh Chandola
2019-01-27 21:59:33 +05:30
committed by Miran
parent 7533f3bcbd
commit 4f0c3274ee

View File

@@ -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