Merge pull request 'fix typos' (#435) from mark2185/exercises:main into main

Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/435
This commit is contained in:
Chris Boesch
2026-05-31 21:12:39 +02:00
4 changed files with 7 additions and 7 deletions

View File

@@ -119,12 +119,12 @@ its patch too. Thats where our little helper Gollum comes in:
1. In the project root, create a folder called `answers/` 1. In the project root, create a folder called `answers/`
2. Put your solved version of the exercise file in there 2. Put your solved version of the exercise file in there
3. Back in the root, run: 3. Back in the root, run:
`./patches/gollum <exercise-number>`<br> `./patches/gollum.sh <exercise-number>`<br>
For example: `./patches/gollum 106` For example: `./patches/gollum.sh 106`
This will generate a shiny new patch. This will generate a shiny new patch.
Double-check everything by asking the magical Eowyn: Double-check everything by asking the magical Eowyn:
`./patches/eowyn`<br> `./patches/eowyn.sh`<br>
If all tests pass: You are done! If all tests pass: You are done!
Dont forget to commit the patch file. Dont forget to commit the patch file.

View File

@@ -14,7 +14,7 @@
// exercises. // exercises.
// //
// A nice example of this has been published on the Zig homepage, // A nice example of this has been published on the Zig homepage,
// replacing the somewhat dusty 'Hello world! // replacing the somewhat dusty 'Hello world!'
// //
// Nothing against 'Hello world!', but it just doesn't do justice // Nothing against 'Hello world!', but it just doesn't do justice
// to the elegance of Zig and that's a pity, if someone takes a short, // to the elegance of Zig and that's a pity, if someone takes a short,

View File

@@ -73,7 +73,7 @@
// Operations performed on vectors in Zig will be done in parallel using // Operations performed on vectors in Zig will be done in parallel using
// SIMD instructions, whenever possible. // SIMD instructions, whenever possible.
// //
// Defining vectors in Zig is straightforwards. No library import is needed. // Defining vectors in Zig is straightforward. No library import is needed.
const v1 = @Vector(3, i32){ 1, 10, 100 }; const v1 = @Vector(3, i32){ 1, 10, 100 };
const v2 = @Vector(3, f32){ 2.0, 3.0, 5.0 }; const v2 = @Vector(3, f32){ 2.0, 3.0, 5.0 };

View File

@@ -1,9 +1,9 @@
// //
// We've already learned plenty about bit manipulation using bitwise operations // We've already learned plenty about bit manipulation using bitwise operations
// in exercices 097 and 098 and in quiz 110. The techniques we already know work // in exercises 097 and 098 and in quiz 110. The techniques we already know work
// just fine, but creating masks and shifting individual bits around can become // just fine, but creating masks and shifting individual bits around can become
// quite tedious and unwieldy pretty quickly. // quite tedious and unwieldy pretty quickly.
// What if there was a better, a more convenient way to control invidivual bits? // What if there was a better, a more convenient way to control individual bits?
// //
// Luckily, Zig has a keyword for exactly this purpose: // Luckily, Zig has a keyword for exactly this purpose:
// //