From e58dee0113e685056abf837d2dace591bda78553 Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Sun, 13 Nov 2016 11:01:13 -0500 Subject: [PATCH] Clarify generics example Resolve #36. Thanks @zachaysan for bringing it to my attention. --- content/content/procs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/content/procs.md b/content/content/procs.md index f8a4c74..39d0475 100644 --- a/content/content/procs.md +++ b/content/content/procs.md @@ -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") ```