Merge pull request #1 from tirkarthi/tirkarthi-patch-1
Wrap the example in a code block
This commit is contained in:
commit
6bebd2ebcf
1 changed files with 11 additions and 12 deletions
|
|
@ -758,8 +758,7 @@ However, this cannot be done for mutually recursive procedures:
|
||||||
# forward declaration:
|
# forward declaration:
|
||||||
proc even(n: int): bool
|
proc even(n: int): bool
|
||||||
|
|
||||||
proc even(n: int): bool
|
.. code-block:: nim
|
||||||
|
|
||||||
proc odd(n: int): bool =
|
proc odd(n: int): bool =
|
||||||
assert(n >= 0) # makes sure we don't run into negative recursion
|
assert(n >= 0) # makes sure we don't run into negative recursion
|
||||||
if n == 0: false
|
if n == 0: false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue