aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jeremy W. Sherman <jeremyw.sherman@gmail.com>2015-05-17 14:45:54 -0400
committerGravatar Jeremy W. Sherman <jeremyw.sherman@gmail.com>2015-05-17 14:45:54 -0400
commitc26d317da5950645590fecf45c907f35ba0462bb (patch)
tree5c54a683b4f38f265b0b9629e65178d418e705f7
parent534fd1a59e1fc956cc15f1bdad3dc008872ed184 (diff)
documents function options must follow name
When declaring a function using the function "function", the options must follow, not precede, the function name. The examples demonstrate this syntax, but the synopsis previously showed the options preceding the name.
-rw-r--r--doc_src/function.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc_src/function.txt b/doc_src/function.txt
index 1f9fb47d..e58d6513 100644
--- a/doc_src/function.txt
+++ b/doc_src/function.txt
@@ -2,7 +2,7 @@
\subsection function-synopsis Synopsis
\fish{synopsis}
-function [OPTIONS] NAME; BODY; end
+function NAME [OPTIONS]; BODY; end
\endfish
\subsection function-description Description