mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-06-08 01:57:02 +09:00
fixed minor spelling and grammar typos
This commit is contained in:
parent
2437edd51f
commit
8384d4d9bf
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
// 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 (097_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 manipulationh 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
|
||||||
// the end are some helper functions that demonstrate how we might make our
|
// the end are some helper functions that demonstrate how we might make our
|
||||||
// code a little more readable.
|
// code a little more readable.
|
||||||
|
@ -321,7 +321,7 @@ pub fn main() !void {
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// While the examples in this quiz have used only 4-bit wide variables,
|
// While the examples in this quiz have used only 4-bit wide variables,
|
||||||
// working with 8 bits is no different. Here's a an example where we set
|
// working with 8 bits is no different. Here's an example where we set
|
||||||
// every other bit beginning with the two's place:
|
// every other bit beginning with the two's place:
|
||||||
|
|
||||||
// var PORTD: u8 = 0b0000_0000;
|
// var PORTD: u8 = 0b0000_0000;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue