Merge pull request #321 from mike706574/patch-1

Fix typos.
This commit is contained in:
Daniel Compton 2017-02-10 15:57:37 +13:00 committed by GitHub
commit 3e16530984
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
(rf/reg-event-db ;; usage: (dispatch [:timer a-js-Date])
:timer ;; every second an event of this kind will be dispatched
(fn [db [_ new-time]] ;; note how the 2nd parameter is desctructure to obtain the data value
(fn [db [_ new-time]] ;; note how the 2nd parameter is destructured to obtain the data value
(assoc db :time new-time))) ;; compute and return the new application state
@ -43,7 +43,7 @@
(rf/reg-sub
:time
(fn [db _] ;; db is current app state. 2nd usused param is query vector
(fn [db _] ;; db is current app state. 2nd unused param is query vector
(-> db
:time)))