aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/arduino/const.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/arduino/const.rst')
-rw-r--r--docs/source/arduino/const.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/source/arduino/const.rst b/docs/source/arduino/const.rst
index eb2b07b..b008144 100644
--- a/docs/source/arduino/const.rst
+++ b/docs/source/arduino/const.rst
@@ -26,13 +26,13 @@ Example
// this defines a variable called "pi", which cannot be changed:
const float pi = 3.14;
float x;
-
+
// ....
-
+
x = pi * 2; // it's fine to find the value of a const variable
-
+
pi = 7; // illegal - you can't write to (modify) a constant
-
+
**#define** or **const**
------------------------
@@ -49,4 +49,4 @@ See Also
- :ref:`volatile <arduino-volatile>`
-.. include:: cc-attribution.txt \ No newline at end of file
+.. include:: cc-attribution.txt