Clarify generics example

Resolve #36. Thanks @zachaysan for bringing it to my attention.
This commit is contained in:
Flaviu Tamas 2016-11-13 11:01:13 -05:00 • committed by GitHub
commit e58dee0113

View file

@ -78,7 +78,7 @@ proc `+`(a, b: string): string =
proc `*`[T](a: T, b: int): T =
result = zero
for i in 0..b:
result = result + a
result = result + a # calls `+` from line 3
assert("a" * 10 == "aaaaaaaaaaa")
```