From 0501f80fea8b61166a5f9a5cad78c73e0ddb929b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Mac=C3=ADas?= Date: Fri, 18 Jul 2014 17:50:27 +0100 Subject: [PATCH 1/2] Small fix, no need for I since b is int --- content/procs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/procs.md b/content/procs.md index c2300ef..6cfa3e0 100644 --- a/content/procs.md +++ b/content/procs.md @@ -75,7 +75,7 @@ let zero = "" proc `+`(a, b: string): string = a & b -proc `*`[T, I](a: T, b: int): T = +proc `*`[T](a: T, b: int): T = result = zero for i in 0..b: result = result + a From 8a5e62db02d64d0aa65718f9832be84f0b1b98d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Mac=C3=ADas?= Date: Fri, 18 Jul 2014 20:24:47 +0100 Subject: [PATCH 2/2] Update method name in call --- content/oop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/oop.md b/content/oop.md index 4a09191..4274632 100644 --- a/content/oop.md +++ b/content/oop.md @@ -29,7 +29,7 @@ animals.add(Cat(name: "Mitten", age: 10)) for a in animals: echo a.vocalize() - echo a.age_human_yrs() + echo a.ageHumanYrs() ``` ``` console $ nimrod c -r oop.nim