Merge pull request #12 from amacias/gen_func
Small fix, no need for I since b is int
This commit is contained in:
commit
36e51b811d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue