From e9e6be4e0573be19c9d5521bbd67e13f4b26aa01 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 30 Apr 2023 16:23:35 -0400 Subject: Updating wording in 'for' exercises This is in preparation for another dive into 'for' in an upcoming Exercise 100. Also reformatted 095 for 65 columns and some wording. --- exercises/016_for2.zig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'exercises/016_for2.zig') diff --git a/exercises/016_for2.zig b/exercises/016_for2.zig index 4a8d09c..8c01bc3 100644 --- a/exercises/016_for2.zig +++ b/exercises/016_for2.zig @@ -35,3 +35,9 @@ pub fn main() void { std.debug.print("The value of bits '1101': {}.\n", .{value}); } +// +// As mentioned in the previous exercise, 'for' loops have gained +// additional flexibility since these early exercises were +// written. As we'll see in later exercises, the above syntax for +// capturing the index is part of a more general ability. hang in +// there! -- cgit v1.2.3