aboutsummaryrefslogtreecommitdiffstats
path: root/source/lang/cpp/compoundbitwise.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-02-09 21:10:34 -0500
committerMarti Bolivar <mbolivar@leaflabs.com>2011-02-09 21:10:34 -0500
commit9768ee6b2f60442676613c154ad784b30191711c (patch)
treebef1b50fde1ea3eafc89124b31dae82979ca8d14 /source/lang/cpp/compoundbitwise.rst
parent9ea60c7e7dffd06791ec2dc62ffab3f2bf802f08 (diff)
downloadlibrambutan-9768ee6b2f60442676613c154ad784b30191711c.tar.gz
librambutan-9768ee6b2f60442676613c154ad784b30191711c.zip
Fixed docs bug where we say "long" when we mean "long long"
Diffstat (limited to 'source/lang/cpp/compoundbitwise.rst')
-rw-r--r--source/lang/cpp/compoundbitwise.rst17
1 files changed, 8 insertions, 9 deletions
diff --git a/source/lang/cpp/compoundbitwise.rst b/source/lang/cpp/compoundbitwise.rst
index a4bbb24..8231130 100644
--- a/source/lang/cpp/compoundbitwise.rst
+++ b/source/lang/cpp/compoundbitwise.rst
@@ -31,8 +31,8 @@ value of ``y``::
x &= y; // equivalent to x = x & y;
You can use any integer variable for ``x`` (i.e., any variable of type
-``int``, ``long``, ``char``, ``byte``, etc.). You can use either an
-integer variable or any :ref:`integer value
+``int``, ``char``, ``byte``, ``long long``, etc.). You can use either
+an integer variable or any :ref:`integer value
<lang-constants-integers>` (like ``3`` or ``0x20``) for ``y``.
Before doing an example of ``&=``, let's first review the Bitwise AND
@@ -115,9 +115,9 @@ its old value bitwise ORed with the value of ``y``::
x |= y; // equivalent to x = x | y;
You can use any integer variable for ``x`` (i.e., any variable of type
-``int``, ``long``, ``char``, ``byte``, etc.). You can use either an
-integer variable or any integer value (like ``3`` or ``0x20``) for
-``y``. (This works the same way as :ref:`compound bitwise AND
+``int``, ``char``, ``long long`` etc.). You can use either an integer
+variable or any integer value (like ``3`` or ``0x20``) for ``y``.
+(This works the same way as :ref:`compound bitwise AND
<lang-compoundbitwise-and>`\ , ``&=``).
Before doing an example of ``|=``, let's first review the Bitwise OR
@@ -178,12 +178,11 @@ will be equal to its old value bitwise XORed with the value of ``y``::
x ^= y; // equivalent to x = x ^ y;
You can use any integer variable for ``x`` (i.e., any variable of type
-``int``, ``long``, ``char``, ``byte``, etc.). You can use either an
+``int``, ``char``, ``long long``, etc.). You can use either an
integer variable or any integer value (like ``3`` or ``0x20``) for
``y``. (This works the same way as :ref:`&=
-<lang-compoundbitwise-and>` and :ref:`\|=
-<lang-compoundbitwise-or>`; in fact, these three operators all
-work the same in this way).
+<lang-compoundbitwise-and>` and :ref:`\|= <lang-compoundbitwise-or>`;
+in fact, these three operators all work the same in this way).
Before doing an example of ``^=``, let's first review the Bitwise
XOR operator, ``^``::