From adf5ddb27df7f5a22b0b7d3321dfc8bca1e7937a Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 7 Feb 2021 11:06:51 -0500 Subject: Consistent instructions and examples I started off with "hints" that required the poor student to piece together the information from incomplete bits. A complete example is like a picture that is worth 1000 words and far clearer. --- 13_while3.zig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '13_while3.zig') diff --git a/13_while3.zig b/13_while3.zig index 55fcc0a..3ff42ff 100644 --- a/13_while3.zig +++ b/13_while3.zig @@ -6,12 +6,13 @@ // Example: // // while (condition) : (continue expression){ +// // if(other condition) continue; -// ... +// // } // -// The continue expression executes even when 'other condition' -// is true and the loop is restarted by the 'continue' statement. +// The "continue expression" executes every time the loop restarts +// whether the "continue" statement happens or not. // const std = @import("std"); -- cgit v1.2.3-ZIG