mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-07-28 18:25:16 +00:00
Merge pull request 'Fixed a couple of exercise references as they are no longer accurate after the recent changes' (#457) from killyosaur/zigling-exercises:fixing-exercise-references into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/457
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// In Exercises 84-91, we learned about Zig's Io interface for
|
// In Exercises 85-94 and quiz 95, we learned about Zig's Io interface for
|
||||||
// concurrent execution: io.async(), Group, Select, and Futures.
|
// concurrent execution: io.async(), Group, Select, and Futures.
|
||||||
// Under the hood, the Threaded backend manages a pool of real
|
// Under the hood, the Threaded backend manages a pool of real
|
||||||
// OS threads for you - including scheduling, cancellation, and
|
// OS threads for you - including scheduling, cancellation, and
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
//
|
//
|
||||||
// A common activity in microcontroller programming is setting and clearing
|
// A common activity in microcontroller programming is setting and clearing
|
||||||
// bits on input and output pins. This lets you control LEDs, sensors, motors
|
// bits on input and output pins. This lets you control LEDs, sensors, motors
|
||||||
// and more! In a previous exercise (097_bit_manipulation.zig) you learned how
|
// and more! In a previous exercise (100_bit_manipulation.zig) you learned how
|
||||||
// to swap two bytes using the ^ (XOR - exclusive or) operator. This quiz will
|
// to swap two bytes using the ^ (XOR - exclusive or) operator. This quiz will
|
||||||
// test your knowledge of bit manipulation in Zig while giving you a taste of
|
// test your knowledge of bit manipulation in Zig while giving you a taste of
|
||||||
// what it's like to control registers in a real microcontroller. Included at
|
// what it's like to control registers in a real microcontroller. Included at
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// We've already learned plenty about bit manipulation using bitwise operations
|
// We've already learned plenty about bit manipulation using bitwise operations
|
||||||
// in exercises 097 and 098 and in quiz 110. The techniques we already know work
|
// in exercises 100 and 101 and in quiz 113. 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 individual bits?
|
// What if there was a better, a more convenient way to control individual bits?
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// We've already learned about switch statements in exercises 030, 031 and 108.
|
// We've already learned about switch statements in exercises 030, 031 and 111.
|
||||||
// They also work with packed containers:
|
// They also work with packed containers:
|
||||||
|
|
||||||
const S = packed struct(u2) {
|
const S = packed struct(u2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user