doc string edits

This commit is contained in:
Stephen C. Gilardi 2015-11-04 09:03:01 -05:00
parent ffa676744d
commit aedafd1ac9
1 changed files with 5 additions and 5 deletions

View File

@ -185,11 +185,10 @@
;; ;;
(defn dispatch (defn dispatch
"Send an event to be processed by the registered handler. "Queue an event to be processed by the registered handler.
Usage example: Usage example:
(dispatch [:delete-item 42]) (dispatch [:delete-item 42])"
"
[event-v] [event-v]
(if (nil? event-v) (if (nil? event-v)
(error "re-frame: \"dispatch\" is ignoring a nil event.") (error "re-frame: \"dispatch\" is ignoring a nil event.")
@ -198,8 +197,9 @@
(defn dispatch-sync (defn dispatch-sync
"Send an event to be processed by the registered handler, but avoid the async-inducing "Send an event to be processed by the registered handler
use of core.async/chan. immediately. Note: dispatch-sync may not be called while another
event is being handled.
Usage example: Usage example:
(dispatch-sync [:delete-item 42])" (dispatch-sync [:delete-item 42])"