diff options
Diffstat (limited to 'source/lang/cpp/int.rst')
-rw-r--r-- | source/lang/cpp/int.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lang/cpp/int.rst b/source/lang/cpp/int.rst index 3e96b69..fa63946 100644 --- a/source/lang/cpp/int.rst +++ b/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:: |