diff options
author | axel <axel@liljencrantz.se> | 2006-09-20 00:52:03 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-09-20 00:52:03 +1000 |
commit | 7a5823fd605af80df483e1d3f3629e60503488de (patch) | |
tree | 714e61c3c6cddec3eb7499e99121de2f3efdcb4e /doc_src/break.txt | |
parent | 81d61c467b2fc42e7e890198fb2bd203b27aff44 (diff) |
Documentation updates from Beni Cherniavsky
darcs-hash:20060919145203-ac50b-bc87b8f5e6a18395e4bc3e364da4a40ad97850e7.gz
Diffstat (limited to 'doc_src/break.txt')
-rw-r--r-- | doc_src/break.txt | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/doc_src/break.txt b/doc_src/break.txt index ebeb4adc..9e511872 100644 --- a/doc_src/break.txt +++ b/doc_src/break.txt @@ -1,4 +1,3 @@ - \section break break - stop the innermost currently evaluated loop \subsection break-synopsis Synopsis @@ -9,13 +8,12 @@ The \c break builtin is used to halt a currently running loop, such as a <a href \subsection break-example Example The following code searches all .c files for smurfs, and halts at the first occurrence. -<p> -<tt>for i in *.c; -<br> if grep smurf $i; -<br> echo Smurfs are present in $i; -<br> break; -<br> end; -<br>end; -</tt> -</p> +<pre> +for i in *.c + if grep smurf $i + echo Smurfs are present in $i + break + end +end +</pre> |