mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-09-20 14:45:36 +00:00
Merge pull request 'fixes some minor typos' (#300) from i122 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/300
This commit is contained in:
commit
0dbe83b20e
|
@ -63,8 +63,9 @@ pub fn main() !void {
|
||||||
}
|
}
|
||||||
// to check if you actually write to the file, you can either,
|
// to check if you actually write to the file, you can either,
|
||||||
// 1. open the file in your text editor, or
|
// 1. open the file in your text editor, or
|
||||||
// 2. print the content of the file in the console with the following command
|
// 2. print the content of the file in the console with one of these commands
|
||||||
// >> cat ./output/zigling.txt
|
// Linux/macOS: >> cat ./output/zigling.txt
|
||||||
|
// Windows (CMD): >> type .\output\zigling.txt
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// More on Creating files
|
// More on Creating files
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Prerequisite :
|
// Prerequisite :
|
||||||
// - exercise/106_files.zig, or
|
// - exercise/106_files.zig, or
|
||||||
// - create a file {project_root}/output/zigling.txt
|
// - create a file {project_root}/output/zigling.txt
|
||||||
// with content `It's zigling time!`(18 byte total)
|
// with content `It's zigling time!`(18 bytes total)
|
||||||
//
|
//
|
||||||
// Now there's no point in writing to a file if we don't read from it, am I right?
|
// Now there's no point in writing to a file if we don't read from it, am I right?
|
||||||
// Let's write a program to read the content of the file that we just created.
|
// Let's write a program to read the content of the file that we just created.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- exercises/106_files.zig 2025-03-13 15:26:59.532367792 +0200
|
--- exercises/106_files.zig 2025-08-24 19:23:55.168565003 +0200
|
||||||
+++ answers/106_files.zig 2025-03-14 22:04:52.243435159 +0200
|
+++ answers/106_files.zig 2025-08-24 19:25:37.745597511 +0200
|
||||||
@@ -35,7 +35,7 @@
|
@@ -35,7 +35,7 @@
|
||||||
// by doing nothing
|
// by doing nothing
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- exercises/107_files2.zig 2025-03-13 15:26:59.532367792 +0200
|
--- exercises/107_files2.zig 2025-08-24 19:15:17.789371332 +0200
|
||||||
+++ answers/107_files2.zig 2025-03-14 22:08:35.167953736 +0200
|
+++ answers/107_files2.zig 2025-08-24 19:17:58.897538288 +0200
|
||||||
@@ -33,7 +33,7 @@
|
@@ -33,7 +33,7 @@
|
||||||
// initialize an array of u8 with all letter 'A'
|
// initialize an array of u8 with all letter 'A'
|
||||||
// we need to pick the size of the array, 64 seems like a good number
|
// we need to pick the size of the array, 64 seems like a good number
|
||||||
|
|
Loading…
Reference in New Issue
Block a user