aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/true.txt
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-09-29 13:26:28 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-09-29 13:39:35 -0700
commitd67800bbce8731cec7ab38609af3e2fe713e16c3 (patch)
tree0638e5e883df9f7f0855011f5a246c00fb499506 /doc_src/true.txt
parent27dd37ebb4c660ab122ece69bc187b36e390b25b (diff)
Make false/true into builtins
Making `true` into a builtin is a significant optimization to `while true` loops. As long as `true` is a builtin, we may as well make `false` builtin as well (despite the fact that it's not typically executed in a loop).
Diffstat (limited to 'doc_src/true.txt')
-rw-r--r--doc_src/true.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc_src/true.txt b/doc_src/true.txt
new file mode 100644
index 00000000..1418c1ed
--- /dev/null
+++ b/doc_src/true.txt
@@ -0,0 +1,10 @@
+\section true true - return a successful result
+
+\subsection true-synopsis Synopsis
+\fish{synopsis}
+true
+\endfish
+
+\subsection true-description Description
+
+`true` sets the exit status to 0.