diff --git a/Nim-for-C-programmers.md b/Nim-for-C-programmers.md index 514dbc0..4578577 100644 --- a/Nim-for-C-programmers.md +++ b/Nim-for-C-programmers.md @@ -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 Function/Procedure.