var arg is not needed since we are passing ref objects

This commit is contained in:
konqoro 2016-11-10 00:08:07 +02:00
parent f39a7b1af0
commit ad9718badc
1 changed files with 1 additions and 1 deletions

View File

@ -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")