diff options
author | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2013-12-18 02:20:35 +0100 |
---|---|---|
committer | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2013-12-18 21:22:22 +0100 |
commit | f46336ae8bdddb7f3a6da4904aae18f99bc34f6f (patch) | |
tree | 0541445d521f2b987261ba16bce49cbc6c3c0da6 /lib/core | |
parent | 543d6b3209b4f106e3ead63d5d88fda87db64de6 (diff) | |
download | Nim-f46336ae8bdddb7f3a6da4904aae18f99bc34f6f.tar.gz |
Adds missing ``code-block`` to macros' docstrings.
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/macros.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index d01d4ebee..5f0d60e5c 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -268,6 +268,8 @@ proc quote*(bl: stmt, op = "``"): PNimrodNode {.magic: "QuoteAst".} ## ## Example: ## + ## .. code-block:: nimrod + ## ## macro check(ex: expr): stmt = ## # this is a simplified version of the check macro from the ## # unittest module. @@ -290,6 +292,8 @@ template emit*(e: expr[string]): stmt = ## that should be inserted verbatim in the program ## Example: ## + ## .. code-block:: nimrod + ## ## emit("echo " & '"' & "hello world".toUpper & '"') ## eval: result = e.parseStmt |