aboutsummaryrefslogtreecommitdiffstats
path: root/source/arduino/assignment.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-10-22 21:10:34 -0400
committerMarti Bolivar <mbolivar@mit.edu>2010-10-22 21:10:34 -0400
commit30ac55d80c18e93f9c39a6dd850c10f9e7fd92ac (patch)
treea1713ed6562819a38b86cb7a84362ea601a048d5 /source/arduino/assignment.rst
parent85c1c72db022bba891868afd3375e39dbe245701 (diff)
downloadlibrambutan-30ac55d80c18e93f9c39a6dd850c10f9e7fd92ac.tar.gz
librambutan-30ac55d80c18e93f9c39a6dd850c10f9e7fd92ac.zip
docs
Diffstat (limited to 'source/arduino/assignment.rst')
-rw-r--r--source/arduino/assignment.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/source/arduino/assignment.rst b/source/arduino/assignment.rst
index 8b851e8..1c790bb 100644
--- a/source/arduino/assignment.rst
+++ b/source/arduino/assignment.rst
@@ -11,7 +11,7 @@ the left of the equal sign.
The single equal sign in the C++ programming language is called the
assignment operator. It has a different meaning than in algebra
-class where it indicated an equation or equality. The assignment
+class, where it indicated an equation or equality. The assignment
operator tells the microcontroller to evaluate whatever value or
expression is on the right side of the equal sign, and store it in
the variable to the left of the equal sign [#fgross]_.
@@ -23,7 +23,7 @@ Example
::
- int sensVal; // declare an integer variable named sensVal
+ int sensVal; // declare an integer variable named sensVal
senVal = analogRead(0); // store the (digitized) input voltage at analog pin 0 in SensVal
@@ -56,8 +56,9 @@ See Also
.. rubric:: Footnotes
- Experienced C++ programmers know this to be an oversimplification
- of what happens when the variable on the left hand side is an
- object. See Richard Gillam's wonderful and scary `The Anatomy of
- the Assignment Operator
+.. [#fgross] Experienced C++ programmers know this to be an
+ oversimplification of what happens when the variable on the left
+ hand side is an object. See Richard Gillam's wonderful and scary
+ `The Anatomy of the Assignment Operator
<http://icu-project.org/docs/papers/cpp_report/the_anatomy_of_the_assignment_operator.html>`_
+ for more information.