aboutsummaryrefslogtreecommitdiffstats
path: root/source/lang/cpp/int.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/int.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/int.rst')
-rw-r--r--source/lang/cpp/int.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/lang/cpp/int.rst b/source/lang/cpp/int.rst
index ca75f75..3e96b69 100644
--- a/source/lang/cpp/int.rst
+++ b/source/lang/cpp/int.rst
@@ -24,6 +24,10 @@ arithmetic operations work mostly as you'd expect. There can be an
dealing with the :ref:`bitshift right operator (>>)
<lang-bitshift>`, however.
+.. _lang-long:
+
+The ``long`` type is a synonym for ``int``.
+
Here is an example of declaring an ``int`` variable named ``ledPin``,
then giving it value 13::
@@ -56,8 +60,8 @@ See Also
- :ref:`unsigned int <lang-unsignedint>`
- :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>`