mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-06-08 01:57:02 +09:00
added blank lines between sections to make them
easier to find
This commit is contained in:
parent
6fbf81d929
commit
b7b3297d06
1 changed files with 20 additions and 24 deletions
|
@ -158,18 +158,17 @@ pub fn main() !void {
|
||||||
// ************************************************************************
|
// ************************************************************************
|
||||||
// IN-DEPTH EXPLANATIONS BELOW
|
// IN-DEPTH EXPLANATIONS BELOW
|
||||||
// ************************************************************************
|
// ************************************************************************
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
// Toggling bits with XOR:
|
// Toggling bits with XOR:
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
@ -204,12 +203,10 @@ pub fn main() !void {
|
||||||
//
|
//
|
||||||
// Now let's take a look at setting bits with the | operator.
|
// Now let's take a look at setting bits with the | operator.
|
||||||
//
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
// Setting bits with OR:
|
// Setting bits with OR:
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
@ -254,12 +251,11 @@ pub fn main() !void {
|
||||||
// So now we've covered how to toggle and set bits. What about clearing
|
// So now we've covered how to toggle and set bits. What about clearing
|
||||||
// them? Well, this is where Zig throws us a curve ball. Don't worry we'll
|
// them? Well, this is where Zig throws us a curve ball. Don't worry we'll
|
||||||
// go through it step by step.
|
// go through it step by step.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
// Clearing bits with AND and NOT:
|
// Clearing bits with AND and NOT:
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue