summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2025-01-04 23:45:10 +0000
committerChris Boesch <chrboesch@noreply.codeberg.org>2025-01-04 23:45:10 +0000
commit468e3d7eed7cfbb68067afb34593dbc1109396d7 (patch)
tree8d00466af9e7314c4e04b44d3581ec8573734dd2
parent5ed3af57ee908017e12a3ed60478e1e816221d49 (diff)
parent26978cb2d388c2990ba9e2658a14edbc42ccce64 (diff)
Merge pull request 'Fix typo vaild → valid' (#197) from zyzzyxdonta/ziglings-exercises:fix-typo-vaild-valid into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/197
-rw-r--r--exercises/107_files2.zig2
-rw-r--r--patches/patches/107_files2.patch2
2 files changed, 2 insertions, 2 deletions
diff --git a/exercises/107_files2.zig b/exercises/107_files2.zig
index 45e12f5..6768898 100644
--- a/exercises/107_files2.zig
+++ b/exercises/107_files2.zig
@@ -40,7 +40,7 @@ pub fn main() !void {
// okay, seems like a threat of violence is not the answer in this case
// can you go here to find a way to read the content?
// https://ziglang.org/documentation/master/std/#std.fs.File
- // hint: you might find two answers that are both vaild in this case
+ // hint: you might find two answers that are both valid in this case
const bytes_read = zig_read_the_file_or_i_will_fight_you(&content);
// Woah, too screamy. I know you're excited for zigling time but tone it down a bit.
diff --git a/patches/patches/107_files2.patch b/patches/patches/107_files2.patch
index ebf8a7c..f03a2e8 100644
--- a/patches/patches/107_files2.patch
+++ b/patches/patches/107_files2.patch
@@ -42,7 +42,7 @@
- // can you go here to find a way to read the content?
+ // can you go here to find a way to read the content ?
// https://ziglang.org/documentation/master/std/#std.fs.File
- // hint: you might find two answers that are both vaild in this case
+ // hint: you might find two answers that are both valid in this case
- const bytes_read = zig_read_the_file_or_i_will_fight_you(&content);
+ const bytes_read = try file.read(&content);