aboutsummaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
Diffstat (limited to 'exercises')
-rw-r--r--exercises/005_arrays2.zig2
-rw-r--r--exercises/029_errdefer.zig2
-rw-r--r--exercises/054_manypointers.zig6
3 files changed, 5 insertions, 5 deletions
diff --git a/exercises/005_arrays2.zig b/exercises/005_arrays2.zig
index 9282a31..57b1962 100644
--- a/exercises/005_arrays2.zig
+++ b/exercises/005_arrays2.zig
@@ -23,7 +23,7 @@ pub fn main() void {
const leet = ???;
// (Problem 2)
- // Please set this array to using repetition.
+ // Please set this array using repetition.
// It should result in: 1 0 0 1 1 0 0 1 1 0 0 1
const bit_pattern = [_]u8{ ??? } ** 3;
diff --git a/exercises/029_errdefer.zig b/exercises/029_errdefer.zig
index f43c738..82fdfe1 100644
--- a/exercises/029_errdefer.zig
+++ b/exercises/029_errdefer.zig
@@ -1,6 +1,6 @@
//
// Another common problem is a block of code that could exit in multiple
-// places due to an error - but that needs to run do something before it
+// places due to an error - but that needs to do something before it
// exits (typically to clean up after itself).
//
// An "errdefer" is a defer that only runs if the block exits with an error:
diff --git a/exercises/054_manypointers.zig b/exercises/054_manypointers.zig
index d07d88f..a646b49 100644
--- a/exercises/054_manypointers.zig
+++ b/exercises/054_manypointers.zig
@@ -27,9 +27,9 @@ pub fn main() void {
// long as you keep track of the length yourself!
//
// 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-item pointer" of const u8 a string as long
- // as we can CONVERT IT TO A SLICE. (Hint: we do know the length!)
+ // (or a slice of const u8 values, as we saw above). So, we could
+ // treat a "many-item pointer" of const u8 as 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:
const zen12_string: []const u8 = zen_manyptr;