From 67bb8d997efcc40ae1c66850c3979236e7dc27a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Fro=C5=82ow?= Date: Fri, 29 Sep 2023 22:34:35 +0200 Subject: [PATCH] Similar to C-style for --- exercises/095_for3.zig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/exercises/095_for3.zig b/exercises/095_for3.zig index e4c4662..34b1ae8 100644 --- a/exercises/095_for3.zig +++ b/exercises/095_for3.zig @@ -2,8 +2,8 @@ // The Zig language is in rapid development and continuously // improves the language constructs. Ziglings evolves with it. // -// Until version 0.11, Zig's 'for' loops did not directly -// replicate the functionality of the C-style: "for(a;b;c)" +// Until version 0.11, Zig's 'for' loops did not have +// similar functionality of the C-style: "for(a;b;c)" // which are so well suited for iterating over a numeric // sequence. // @@ -30,6 +30,9 @@ // // At the moment, ranges are only supported in 'for' loops. // +// Still C-style: "for(a;b;c)" allows for more flexibility, like multiple +// counters, different step amount, etc. +// // Perhaps you recall Exercise 13? We were printing a numeric // sequence like so: //