Skip to content

Commit 9986502

Browse files
author
SimonePDA
authored
Update bitwiseXor.adoc
Missin g an X in front of OR in the description of the example, as pointed out in #286
1 parent 2e10737 commit 9986502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Language/Structure/Bitwise Operators/bitwiseXor.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int z = x ^ y; // binary: 0110, or decimal 6
4949
----
5050
[%hardbreaks]
5151

52-
The ^ operator is often used to toggle (i.e. change from 0 to 1, or 1 to 0) some of the bits in an integer expression. In a bitwise OR operation if there is a 1 in the mask bit, that bit is inverted; if there is a 0, the bit is not inverted and stays the same. Below is a program to blink digital pin 5.
52+
The ^ operator is often used to toggle (i.e. change from 0 to 1, or 1 to 0) some of the bits in an integer expression. In a bitwise XOR operation if there is a 1 in the mask bit, that bit is inverted; if there is a 0, the bit is not inverted and stays the same. Below is a program to blink digital pin 5.
5353

5454
[source,arduino]
5555
----
@@ -82,4 +82,4 @@ delay(100);
8282
* #EXAMPLE# https://www.arduino.cc/playground/Code/BitMath[BitMath Tutorial^]
8383

8484
--
85-
// SEE ALSO SECTION ENDS
85+
// SEE ALSO SECTION ENDS

0 commit comments

Comments
 (0)