summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--exercises/001_hello.zig2
-rw-r--r--exercises/072_comptime7.zig2
-rw-r--r--exercises/076_sentinels.zig2
-rw-r--r--exercises/092_interfaces.zig2
-rw-r--r--exercises/096_memory_allocation.zig2
-rw-r--r--exercises/098_bit_manipulation2.zig6
6 files changed, 8 insertions, 8 deletions
diff --git a/exercises/001_hello.zig b/exercises/001_hello.zig
index 9534b60..2d95a10 100644
--- a/exercises/001_hello.zig
+++ b/exercises/001_hello.zig
@@ -11,7 +11,7 @@
// ...
// }
//
-// Perhaps knowing this well help solve the errors we're getting
+// Perhaps knowing this will help solve the errors we're getting
// with this little program?
//
const std = @import("std");
diff --git a/exercises/072_comptime7.zig b/exercises/072_comptime7.zig
index 147b935..9bc30fb 100644
--- a/exercises/072_comptime7.zig
+++ b/exercises/072_comptime7.zig
@@ -1,6 +1,6 @@
//
// There is also an 'inline while'. Just like 'inline for', it
-// loops at compile time, allowing you do all sorts of
+// loops at compile time, allowing you to do all sorts of
// interesting things not possible at runtime. See if you can
// figure out what this rather bonkers example prints:
//
diff --git a/exercises/076_sentinels.zig b/exercises/076_sentinels.zig
index 6f7abae..1af59da 100644
--- a/exercises/076_sentinels.zig
+++ b/exercises/076_sentinels.zig
@@ -69,7 +69,7 @@ pub fn main() void {
}
// Here's our generic sequence printing function. It's nearly
-// complete, but there are a couple missing bits. Please fix
+// complete, but there are a couple of missing bits. Please fix
// them!
fn printSequence(my_seq: anytype) void {
const my_typeinfo = @typeInfo(@TypeOf(my_seq));
diff --git a/exercises/092_interfaces.zig b/exercises/092_interfaces.zig
index 8f0a937..0b6b087 100644
--- a/exercises/092_interfaces.zig
+++ b/exercises/092_interfaces.zig
@@ -86,7 +86,7 @@ const Insect = union(enum) {
// Thanks to 'inline else', we can think of this print() as
// being an interface method. Any member of this union with
- // with a print() method can be treated uniformly by outside
+ // a print() method can be treated uniformly by outside
// code without needing to know any other details. Cool!
pub fn print(self: Insect) void {
switch (self) {
diff --git a/exercises/096_memory_allocation.zig b/exercises/096_memory_allocation.zig
index 4a89702..8e348be 100644
--- a/exercises/096_memory_allocation.zig
+++ b/exercises/096_memory_allocation.zig
@@ -27,7 +27,7 @@
// std.debug.print("ptr={*}\n", .{ptr});
//
// const slice_ptr = try allocator.alloc(f64, 5);
-// std.debug.print("ptr={*}\n", .{ptr});
+// std.debug.print("slice_ptr={*}\n", .{slice_ptr});
// }
// Instead of an simple integer or a constant sized slice, this
diff --git a/exercises/098_bit_manipulation2.zig b/exercises/098_bit_manipulation2.zig
index d5ee825..9323548 100644
--- a/exercises/098_bit_manipulation2.zig
+++ b/exercises/098_bit_manipulation2.zig
@@ -39,7 +39,7 @@ fn isPangram(str: []const u8) bool {
// first we check if the string has at least 26 characters
if (str.len < 26) return false;
- // we uses a 32 bit variable of which we need 26 bit
+ // we uses a 32 bit variable of which we need 26 bits
var bits: u32 = 0;
// loop about all characters in the string
@@ -50,8 +50,8 @@ fn isPangram(str: []const u8) bool {
//
// to do this, we use a little trick:
// since the letters in the ASCI table start at 65
- // and are numbered by, we simply subtract the first
- // letter (in this case the 'a') from the character
+ // and are numbered sequentially, we simply subtract the
+ // first letter (in this case the 'a') from the character
// found, and thus get the position of the desired bit
bits |= @as(u32, 1) << @truncate(u5, ascii.toLower(c) - 'a');
}