aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-03-13 16:27:14 -0500
committerDave Gauer <dave@ratfactor.com>2021-03-13 16:27:14 -0500
commit9cc49f98b94ef3bb4201bb17140cffa8dc7d054c (patch)
tree695ea4069009f421dac45107d0d0c41698daa356
parentc48e6f8087753c289830187f980f2be86e3d2657 (diff)
Many pointers -> many-item pointers
-rw-r--r--README.md2
-rw-r--r--exercises/054_manypointers.zig4
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 56e5b68..155774a 100644
--- a/README.md
+++ b/README.md
@@ -131,7 +131,7 @@ Planned exercises:
* [x] Optionals
* [x] Struct methods
* [x] Slices
-* [x] Many pointers
+* [x] Many-item pointers
* [x] Unions
* [ ] Numeric types (integers, floats)
* [ ] Labelled blocks and loops
diff --git a/exercises/054_manypointers.zig b/exercises/054_manypointers.zig
index 23f2ae5..d07d88f 100644
--- a/exercises/054_manypointers.zig
+++ b/exercises/054_manypointers.zig
@@ -20,7 +20,7 @@ pub fn main() void {
// It would also have been valid to coerce to a slice:
// const zen12: []const u8 = "...";
//
- // Now let's turn this into a "many pointer":
+ // Now let's turn this into a "many-item pointer":
const zen_manyptr: [*]const u8 = zen12;
// It's okay to access zen_manyptr just like an array or slice as
@@ -28,7 +28,7 @@ pub fn main() void {
//
// A "string" in Zig is a pointer to an array of const u8 values
// or a slice of const u8 values, into one, as we saw above). So,
- // we could treat a "many pointer" of const u8 a string as long
+ // we could treat a "many-item pointer" of const u8 a string as long
// as we can CONVERT IT TO A SLICE. (Hint: we do know the length!)
//
// Please fix this line so the print below statement can print it: