Skip to content

Commit 897ef47

Browse files
authored
Update compoundMultiplication.adoc
Change Example Code from: x = 2; x *= 2; // x now contains 4 ---- Change it to: x = 2; x *= 3; // x now contains 6 ---- Just makes it a little clearer, since 2+2=4 and 2*2=4. Too many twos.
1 parent 4ca291e commit 897ef47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Language/Structure/Compound Operators/compoundMultiplication.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This is a convenient shorthand to perform multiplication of a variable with anot
4747
[source,arduino]
4848
----
4949
x = 2;
50-
x *= 2; // x now contains 4
50+
x *= 3; // x now contains 6
5151
----
5252

5353

0 commit comments

Comments
 (0)