fix some typos I noticed while reading

This commit is contained in:
James E. Marca 2016-08-15 10:00:42 -07:00
parent 147d9c52fb
commit 1f18cb7067

View file

@ -356,7 +356,7 @@ During testing it is often very useful to mock/stub certain states. For example
### Swapping States with Values ### Swapping States with Values
The `start-with` function takes values as substitues. The `start-with` function takes values as substitutes.
Say we have a `send-sms` state: Say we have a `send-sms` state:
@ -381,7 +381,7 @@ When running tests it would be great _not_ to send the real text messages, but r
### Swapping States with States ### Swapping States with States
The `start-with-states` function takes other states as substitues: The `start-with-states` function takes other states as substitutes:
```clojure ```clojure
(mount/start-with-states {#'app.neo/db #'app.test/test-db (mount/start-with-states {#'app.neo/db #'app.test/test-db
@ -459,7 +459,7 @@ Providing a `:stop` function _is_ optional, but in case a state needs to be clea
### :on-reload ### :on-reload
By default a state will be restarted on its redefenition or a namespace recompilation. However it is not always a desired behavior. Sometimes it's ok to have stale references during REPL sessions / development, other times all that is needed is not a "restart", but just a "stop". By default a state will be restarted on its redefinition or a namespace recompilation. However it is not always a desired behavior. Sometimes it's ok to have stale references during REPL sessions / development, other times all that is needed is not a "restart", but just a "stop".
This behavior could be controlled with an optional `:on-reload` meta attribute when defining a state. This behavior could be controlled with an optional `:on-reload` meta attribute when defining a state.
@ -705,7 +705,7 @@ dev=> (find-orders conn "TSLA")
### New York Stock Exchange Maintenance ### New York Stock Exchange Maintenance
Say we want to leave the exchange functioning, but would like to make sure that noone can hit it from the web. Easy, just stop the web server: Say we want to leave the exchange functioning, but would like to make sure that no one can hit it from the web. Easy, just stop the web server:
```clojure ```clojure
dev=> (mount/stop #'app.www/nyse-app) dev=> (mount/stop #'app.www/nyse-app)