From ad9718badc2f0eb0a759c2b6b64187e7d09b2914 Mon Sep 17 00:00:00 2001 From: konqoro Date: Thu, 10 Nov 2016 00:08:07 +0200 Subject: [PATCH] var arg is not needed since we are passing ref objects --- Nim-for-Python-Programmers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nim-for-Python-Programmers.md b/Nim-for-Python-Programmers.md index 62187cd..adeb987 100644 --- a/Nim-for-Python-Programmers.md +++ b/Nim-for-Python-Programmers.md @@ -99,7 +99,7 @@ type Cat = ref object of Animal playfulness: float # A proc that can access and *modify* the object -proc increase_age(self: var Cat) = +proc increase_age(self: Cat) = self.age.inc() var c = Cat(name: "Tom")