summary refs log tree commit diff stats
path: root/doc/manual
diff options
context:
space:
mode:
authorAndrey Makarov <ph.makarov@gmail.com>2022-08-17 22:20:22 +0300
committerGitHub <noreply@github.com>2022-08-17 15:20:22 -0400
commit1c31de361d345c7cfc9ac2ca7a3040bdfa649d9a (patch)
tree1680268b83a3f3a45f238dda685cd10a8531b354 /doc/manual
parent60f6724b7003bf2cb63c61e8b2a4b08772672ff4 (diff)
downloadNim-1c31de361d345c7cfc9ac2ca7a3040bdfa649d9a.tar.gz
Markdown code blocks part 5 (#20236)
No logic was added, just a few more `*.md` files have been migrated.
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/var_t_return.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/manual/var_t_return.md b/doc/manual/var_t_return.md
index f5c5bc4c0..15d908c74 100644
--- a/doc/manual/var_t_return.md
+++ b/doc/manual/var_t_return.md
@@ -6,7 +6,7 @@ rule: If `result` does not refer to a location pointing to the heap
 (that is in `result = X` the `X` involves a `ptr` or `ref` access)
 then it has to be derived from the routine's first parameter:
 
-.. code-block:: nim
+  ```nim
   proc forward[T](x: var T): var T =
     result = x # ok, derived from the first parameter.
 
@@ -17,6 +17,7 @@ then it has to be derived from the routine's first parameter:
     result = forward(x) # Error: location is derived from `x`
                         # which is not p's first parameter and lives
                         # on the stack.
+  ```
 
 In other words, the lifetime of what `result` points to is attached to the
 lifetime of the first parameter and that is enough knowledge to verify