aboutsummaryrefslogtreecommitdiffstats
path: root/source/arduino/assignment.rst
diff options
context:
space:
mode:
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.