system: some documentation improvements (#10809)

This commit is contained in:
Miran 2019-03-11 11:04:08 +01:00 • committed by GitHub
commit 06f23572d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1412 additions and 820 deletions

View file

@ -38,7 +38,7 @@ template assert*(cond: untyped, msg = "") =
assertImpl(cond, msg, expr, compileOption("assertions"))
template doAssert*(cond: untyped, msg = "") =
## same as ``assert`` but is always turned on regardless of ``--assertions``
## Similar to ``assert`` but is always turned on regardless of ``--assertions``.
const expr = astToStr(cond)
assertImpl(cond, msg, expr, true)