summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2021-01-12 00:08:24 -0600
committerGitHub <noreply@github.com>2021-01-12 14:08:24 +0800
commitf0cfc95372acbd0be54b826b96417616c4f2fd2e (patch)
treef3cbfb5411c6b60e44d7a7a7461c5940d7c18fa3 /doc
parentfd5c8ef20845a511ad4e0af8dd8ad4331bf46ffc (diff)
downloadNim-f0cfc95372acbd0be54b826b96417616c4f2fd2e.tar.gz
fix docs typo (#16637)
* fix typo

* fix typo

* Update doc/astspec.txt
Diffstat (limited to 'doc')
-rw-r--r--doc/astspec.txt2
-rw-r--r--doc/manual_experimental.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/astspec.txt b/doc/astspec.txt
index e7bbcecc2..c49f7bcc2 100644
--- a/doc/astspec.txt
+++ b/doc/astspec.txt
@@ -414,7 +414,7 @@ AST:
 Example code:
 
 .. code-block:: nim
-  macro genRepeatEcho(): stmt =
+  macro genRepeatEcho() =
     result = newNimNode(nnkStmtList)
 
     var forStmt = newNimNode(nnkForStmt) # generate a for statement
diff --git a/doc/manual_experimental.rst b/doc/manual_experimental.rst
index 772f0d12c..e1fc282da 100644
--- a/doc/manual_experimental.rst
+++ b/doc/manual_experimental.rst
@@ -1710,7 +1710,7 @@ e.g. when rewriting term to same term plus extra content.
 e.g. with given example ``echo("ab")`` will be rewritten just once:
 
 .. code-block:: nim
-  template pwnEcho{echo(x)}(x: expr) =
+  template pwnEcho{echo(x)}(x: untyped) =
     {.noRewrite.}: echo("pwned!")
 
   echo "ab"