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.
This commit is contained in:
Dave Gauer 2021-02-07 11:06:51 -05:00
parent 507355ec3b
commit adf5ddb27d
16 changed files with 185 additions and 89 deletions

View file

@ -1,10 +1,11 @@
//
// Behold the 'for' loop! It lets you execute code for each
// member of an array (and things called 'slices' which we'll
// get to in a bit).
// member of an array:
//
// for (items) |item| {
//
// // Do something with item
//
// }
//
const std = @import("std");
@ -22,3 +23,6 @@ pub fn main() void {
std.debug.print("The End.\n", .{});
}
//
// Note that "for" loops also work on things called "slices"
// which we'll see later.