From dd7e6ecdafcb8938e23dfd18a36d70628fbc74bd Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Fri, 22 Oct 2010 21:10:34 -0400 Subject: docs --- docs/source/arduino/assignment.rst | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'docs/source/arduino/assignment.rst') diff --git a/docs/source/arduino/assignment.rst b/docs/source/arduino/assignment.rst index 8b851e8..1c790bb 100644 --- a/docs/source/arduino/assignment.rst +++ b/docs/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 `_ + for more information. -- cgit v1.2.3