← dlang

exforloop2.d

690a8ee1838f8715867335cf3734c88d9fe94c77 · ovidiucs · Sep 6, 2015 23:49

+1 −1 · 1 file changed

  • exforloop2.d +1 −1
diff --git a/exforloop2.d b/exforloop2.d
index 4e1cd63..ef9a45a 100644
--- a/exforloop2.d
+++ b/exforloop2.d
@@ -6,7 +6,7 @@ void main()
    char[] p;
    for (int z = 0; z < i; ++z)
    {
-      p = ~'*';
+      p = p ~'*';
       writeln(p);
    }
 }