aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/trap.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc_src/trap.txt')
-rw-r--r--doc_src/trap.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc_src/trap.txt b/doc_src/trap.txt
index fdccd178..9c607ad4 100644
--- a/doc_src/trap.txt
+++ b/doc_src/trap.txt
@@ -40,6 +40,7 @@ The return status is 1 if any `SIGSPEC` is invalid; otherwise trap
returns 0.
\subsection trap-example Example
-
-`trap "status --print-stack-trace" SIGUSR1` prints a stack trace
-each time the `SIGUSR1` signal is sent to the shell.
+\fish
+trap "status --print-stack-trace" SIGUSR1
+# Prints a stack trace each time the SIGUSR1 signal is sent to the shell.
+\endfish \ No newline at end of file