summaryrefslogtreecommitdiffstatshomepage
path: root/exercises
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-02-28 16:29:37 +0100
committerGitHub <noreply@github.com>2023-02-28 16:29:37 +0100
commit582f3b1b09cdbca7b27fc657998a4658439e45d7 (patch)
treef5f1a2aad360436d1f1a48b75f8529e162ee3cce /exercises
parent861bf28e73bef6e96649a727fbc15a801b26dabe (diff)
parent20a0fcdd9ab984e931ee84c96e71438c665021eb (diff)
Merge pull request #194 from Seanny123/sean-nitpicks
Nitpicks: typos, grammar
Diffstat (limited to 'exercises')
-rw-r--r--exercises/093_hello_c.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/exercises/093_hello_c.zig b/exercises/093_hello_c.zig
index f5ff831..a53a108 100644
--- a/exercises/093_hello_c.zig
+++ b/exercises/093_hello_c.zig
@@ -47,17 +47,17 @@ const c = @cImport({
pub fn main() void {
- // In order to output a text that can be evaluated by the
+ // In order to output text that can be evaluated by the
// Zig Builder, we need to write it to the Error output.
- // In Zig we do this with "std.debug.print" and in C we can
+ // In Zig, we do this with "std.debug.print" and in C we can
// specify a file descriptor i.e. 2 for error console.
//
- // In this exercise we use 'write' to output 17 chars,
+ // In this exercise we use 'write' to output 17 chars,
// but something is still missing...
const c_res = write(2, "Hello C from Zig!", 17);
// let's see what the result from C is:
- std.debug.print(" - C result ist {d} chars written.\n", .{c_res});
+ std.debug.print(" - C result is {d} chars written.\n", .{c_res});
}
//
// Something must be considered when compiling with C functions.