aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/emit.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc_src/emit.txt')
-rw-r--r--doc_src/emit.txt10
1 files changed, 3 insertions, 7 deletions
diff --git a/doc_src/emit.txt b/doc_src/emit.txt
index 23143999..78d36917 100644
--- a/doc_src/emit.txt
+++ b/doc_src/emit.txt
@@ -9,15 +9,11 @@ The emit builtin fires a generic fish event. Such events can be caught by specia
\subsection emit-example Example
-The following code first defines an event handler for the generig
+The following code first defines an event handler for the generic
event named 'test_event', and then emits an event of that type.
-<pre>
-function event_test --on-event test_event
+<pre>function event_test --on-event test_event
echo event test!!!
end
-emit test_event
-
-</pre>
-
+emit test_event</pre> \ No newline at end of file