From 0788198de3e8498e9c6176be6d1b6f0e6f5dfbd4 Mon Sep 17 00:00:00 2001 From: tim bangma Date: Fri, 12 Feb 2021 23:55:26 -0500 Subject: [PATCH 1/3] Update 04_arrays.zig array index was off by 1. --- exercises/04_arrays.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/04_arrays.zig b/exercises/04_arrays.zig index 0f4ffe1..b8eeb9d 100644 --- a/exercises/04_arrays.zig +++ b/exercises/04_arrays.zig @@ -11,11 +11,11 @@ // // Get values of an array using array[index] notation: // -// const bar = foo[3]; // 5423 +// const bar = foo[2]; // 5423 // // Set values of an array using array[index] notation: // -// foo[3] = 16; +// foo[2] = 16; // // Get the length of an array using the len property: // From 5505569980173b6180b2954b96e8d11e129dd985 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sat, 13 Feb 2021 11:23:53 -0500 Subject: [PATCH 2/3] Updating README description of project Also updated the GitHub project description to: "Learn the Zig programming language by fixing tiny broken programs." I think it sounds more of a fun challenge this way rather than the more academic "learn by doing exercises". I mean, who wouldn't want to come help these "tiny broken programs"?!? --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 616e3d8..e945cbb 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # ziglings -Welcome to `ziglings`! This project contains a series of incomplete exercises. -By completing the exercises, you learn how to read and write +Welcome to `ziglings`! This project contains a series of tiny broken programs. +By fixing them, you'll learn how to read and write [Zig](https://ziglang.org/) -code. +code! This project was directly inspired by the brilliant and fun [rustlings](https://github.com/rust-lang/rustlings) From 2493e93c378a8a499e66d5629b3a2f84ad12d0f5 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sat, 13 Feb 2021 15:47:00 -0500 Subject: [PATCH 3/3] Added additional inspirations for Ziglings Ruby Koans is even attributed by rustlings. The Little Schemer is a personal all-time favorite programming book. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e945cbb..2d8bf68 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ code! This project was directly inspired by the brilliant and fun [rustlings](https://github.com/rust-lang/rustlings) project for the [Rust](https://www.rust-lang.org/) language. +Indirect inspiration comes from [Ruby Koans]( http://rubykoans.com/) +and the Little LISPer/Little Schemer series of books. ## Intended Audience