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 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