aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/lang/cpp/int.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-06-10 09:10:03 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-06-10 09:10:03 -0400
commitdf044ee0c3a8602ac3329a86ff6c62d3ec4568b0 (patch)
tree100dcf093a7596c2632d4b944a46c5f3bd271a38 /docs/source/lang/cpp/int.rst
parent7374b7e9e264cd231f1e2bba44e776533938d41a (diff)
downloadlibrambutan-df044ee0c3a8602ac3329a86ff6c62d3ec4568b0.tar.gz
librambutan-df044ee0c3a8602ac3329a86ff6c62d3ec4568b0.zip
Docs: Use "BOARD_LED_PIN" instead of "13".
Fix examples where pin 13 was used explicitly instead of BOARD_LED_PIN. Also change an AVR-specific example in docs/lang/cpp/booleanvariables.rst to Maple conventions.
Diffstat (limited to 'docs/source/lang/cpp/int.rst')
-rw-r--r--docs/source/lang/cpp/int.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/source/lang/cpp/int.rst b/docs/source/lang/cpp/int.rst
index 3e96b69..fa63946 100644
--- a/docs/source/lang/cpp/int.rst
+++ b/docs/source/lang/cpp/int.rst
@@ -28,10 +28,10 @@ dealing with the :ref:`bitshift right operator (>>)
The ``long`` type is a synonym for ``int``.
-Here is an example of declaring an ``int`` variable named ``ledPin``,
+Here is an example of declaring an ``int`` variable named ``pin``,
then giving it value 13::
- int ledPin = 13;
+ int pin = 13;
The general syntax for declaring an ``int`` variable named ``var``,
then giving it value ``val``, looks like::