From 3e31df62a13fdcd19c5607dbd0c238d9d0986dde Mon Sep 17 00:00:00 2001 From: jlp765 Date: Mon, 5 Sep 2016 21:50:04 +1000 Subject: [PATCH] Updated Nim for C programmers (markdown) --- Nim-for-C-programmers.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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.