Merge branch 'main' into main
This commit is contained in:
commit
a47dfe1f4d
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ pub fn main() !void {
|
||||||
// okay, seems like a threat of violence is not the answer in this case
|
// 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?
|
// can you go here to find a way to read the content?
|
||||||
// https://ziglang.org/documentation/master/std/#std.fs.File
|
// 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 = 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.
|
// Woah, too screamy. I know you're excited for zigling time but tone it down a bit.
|
||||||
|
|
|
@ -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?
|
||||||
+ // 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
|
// 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 = zig_read_the_file_or_i_will_fight_you(&content);
|
||||||
+ const bytes_read = try file.read(&content);
|
+ const bytes_read = try file.read(&content);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue