aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/return.txt
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-09-20 00:52:03 +1000
committerGravatar axel <axel@liljencrantz.se>2006-09-20 00:52:03 +1000
commit7a5823fd605af80df483e1d3f3629e60503488de (patch)
tree714e61c3c6cddec3eb7499e99121de2f3efdcb4e /doc_src/return.txt
parent81d61c467b2fc42e7e890198fb2bd203b27aff44 (diff)
Documentation updates from Beni Cherniavsky
darcs-hash:20060919145203-ac50b-bc87b8f5e6a18395e4bc3e364da4a40ad97850e7.gz
Diffstat (limited to 'doc_src/return.txt')
-rw-r--r--doc_src/return.txt13
1 files changed, 7 insertions, 6 deletions
diff --git a/doc_src/return.txt b/doc_src/return.txt
index a3c97809..4009130a 100644
--- a/doc_src/return.txt
+++ b/doc_src/return.txt
@@ -1,8 +1,7 @@
-
\section return return - Stop the innermost currently evaluated function
\subsection return-synopsis Synopsis
- <tt>function NAME; [COMMANDS...] return [STATUS]; [COMMANDS...] end</tt>
+<tt>function NAME; [COMMANDS...;] return [STATUS]; [COMMANDS...;] end</tt>
\subsection return-description Description
@@ -17,9 +16,11 @@ function.
\subsection return-example Example
The following code is an implementation of the false command as a fish function
-<p>
-<pre>function false
+
+<pre>
+function false
return 1
-end</pre>
-</p>
+end
+</pre>
+