aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/lang/cpp/unsignedint.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
commit2a0c7510fb91ba4a11b6772a8ae72685823907f8 (patch)
treed73f5ba8dc722032ab4f7efc913eecf2fd57dff4 /docs/source/lang/cpp/unsignedint.rst
parent7366564129bf4e4030e9083f4521eda49d985fb8 (diff)
downloadlibrambutan-2a0c7510fb91ba4a11b6772a8ae72685823907f8.tar.gz
librambutan-2a0c7510fb91ba4a11b6772a8ae72685823907f8.zip
Fixed docs bug where we say "long" when we mean "long long"
Diffstat (limited to 'docs/source/lang/cpp/unsignedint.rst')
-rw-r--r--docs/source/lang/cpp/unsignedint.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/source/lang/cpp/unsignedint.rst b/docs/source/lang/cpp/unsignedint.rst
index f6311da..ad3e2f2 100644
--- a/docs/source/lang/cpp/unsignedint.rst
+++ b/docs/source/lang/cpp/unsignedint.rst
@@ -31,6 +31,10 @@ that an ``unsigned int`` will "underflow" at 0, and "overflow" at
x--; // x now contains 4,294,967,295; rolled over "left to right"
x++; // x now contains 0; rolled over "right to left"
+.. _lang-unsignedlong:
+
+The ``unsigned long`` type is a synonym for ``unsigned int``.
+
Here is an example of declaring an ``unsigned int`` variable named
``ledPin``, then giving it value 13::
@@ -47,8 +51,8 @@ See Also
- :ref:`int <lang-int>`
- :ref:`char <lang-char>`
- :ref:`unsigned char <lang-unsignedchar>`
-- :ref:`long <lang-long>`
-- :ref:`unsigned long <lang-unsignedlong>`
+- :ref:`long long <lang-longlong>`
+- :ref:`unsigned long long <lang-unsignedlonglong>`
- :ref:`Integer Constants <lang-constants-integers>`
- :ref:`Variables <lang-variables>`