mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
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:
@@ -119,12 +119,12 @@ its patch too. That’s where our little helper Gollum comes in:
|
||||
1. In the project root, create a folder called `answers/`
|
||||
2. Put your solved version of the exercise file in there
|
||||
3. Back in the root, run:
|
||||
`./patches/gollum <exercise-number>`<br>
|
||||
For example: `./patches/gollum 106`
|
||||
`./patches/gollum.sh <exercise-number>`<br>
|
||||
For example: `./patches/gollum.sh 106`
|
||||
This will generate a shiny new patch.
|
||||
|
||||
Double-check everything by asking the magical Eowyn:
|
||||
`./patches/eowyn`<br>
|
||||
`./patches/eowyn.sh`<br>
|
||||
If all tests pass: You are done!
|
||||
|
||||
Don’t forget to commit the patch file.
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// exercises.
|
||||
//
|
||||
// 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
|
||||
// to the elegance of Zig and that's a pity, if someone takes a short,
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
// Operations performed on vectors in Zig will be done in parallel using
|
||||
// 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 v2 = @Vector(3, f32){ 2.0, 3.0, 5.0 };
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
//
|
||||
// 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
|
||||
// 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:
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user