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