Updated Nim for C programmers (markdown)
This commit is contained in:
parent
884bb7fbc6
commit
3e31df62a1
|
@ -302,9 +302,10 @@ proc bar(): int =
|
|||
proc baz(x: int): int =
|
||||
x*2
|
||||
|
||||
proc foobar(x: var int): int =
|
||||
proc foobar(x: var int):
|
||||
int =
|
||||
inc(x)
|
||||
result = x*2 # also valid
|
||||
result = x*2
|
||||
</pre>
|
||||
</td>
|
||||
<td><b>Function/Procedure.</b> </td>
|
||||
|
|
Loading…
Reference in New Issue