aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Gauer <[email protected]>2021-02-13 20:36:15 -0500
committerDave Gauer <[email protected]>2021-02-13 20:36:15 -0500
commit96cb465fb855106d92d391e35923478abecd6098 (patch)
tree3224e9428d923d0edfd447e2f371e77e5ae59a98
parentee8fbbd65d18706aea420563a3faaf016b026658 (diff)
parent2493e93c378a8a499e66d5629b3a2f84ad12d0f5 (diff)
downloadziglings-96cb465fb855106d92d391e35923478abecd6098.tar.xz
ziglings-96cb465fb855106d92d391e35923478abecd6098.zip
Merge branch 'main' of github.com:ratfactor/ziglings into main
-rw-r--r--README.md8
-rw-r--r--exercises/04_arrays.zig4
2 files changed, 7 insertions, 5 deletions
diff --git a/README.md b/README.md
index 616e3d8..2d8bf68 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,15 @@
# 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)
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
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:
//