aboutsummaryrefslogtreecommitdiffstats
path: root/source/lang/break.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-12-03 20:18:00 -0500
committerMarti Bolivar <mbolivar@mit.edu>2010-12-03 20:18:00 -0500
commit210f3d2b1555bae87c9de27ea145e16d3bddb0f8 (patch)
tree5e409fff948c9a1847d08e5ec34f905ea2212956 /source/lang/break.rst
parent11573d0fca18ef2ccd965ab67d419afd48b7cef2 (diff)
downloadlibrambutan-210f3d2b1555bae87c9de27ea145e16d3bddb0f8.tar.gz
librambutan-210f3d2b1555bae87c9de27ea145e16d3bddb0f8.zip
cleaning up previous commits.
note that addition of new files under docs/source/lang/api and docs/source/lang/cpp which were just copies of files in docs/source/lang/ imply that change history is lost to git.
Diffstat (limited to 'source/lang/break.rst')
-rw-r--r--source/lang/break.rst35
1 files changed, 0 insertions, 35 deletions
diff --git a/source/lang/break.rst b/source/lang/break.rst
deleted file mode 100644
index ce8ac17..0000000
--- a/source/lang/break.rst
+++ /dev/null
@@ -1,35 +0,0 @@
-.. highlight:: cpp
-
-.. _lang-break:
-
-``break``
-=========
-
-``break`` is used to exit from a :ref:`while <lang-while>`\ ,
-:ref:`for <lang-for>`\ , or :ref:`do/while <lang-dowhile>` loop,
-bypassing the normal loop condition. It is also used to exit from a
-:ref:`switch <lang-switchcase>` statement.
-
-
-Example
--------
-
-::
-
- for (x = 0; x < 255; x ++)
- {
- digitalWrite(PWMpin, x);
- sens = analogRead(sensorPin);
- if (sens > threshold){ // bail out on sensor detect
- x = 0;
- // this line of code means that we'll immediately exit
- // from the "for" loop:
- break;
- }
- delay(50);
- }
-
-
-
-
-.. include:: cc-attribution.txt