 ;;;; References
 ;;;; - There are a fair few types of reference.
 ;;;;   - atoms, refs, vars, agents, promises, futures...
-;;;; - Some are for managing state.
-;;;; - Some are for managing concurrency.
+;;;; - Some are primarily for managing state.
+;;;; - Some are primarily for managing concurrency.
 ;;;; - Some combine the two.
 
-;;;; Here we will look at two reference types, both for managing state
+;;;; Here we will look at two reference types, both for managing state.
 ;;;; - Atoms
 ;;;; - Refs (confusing names! A ref is one kind of reference.)
 

                       :address {:line-1 "78 Green Lane"
                                 :line-2 "New Town"}})

;;;; ___________________________________________________________________________
;;;; `compare-and-set!`

(fact @my-number-atom => 64)
(fact (compare-and-set! my-number-atom 99 42) => false)

(fact @my-number-atom => 42)

;;;; ___________________________________________________________________________
;;;; Atoms: `reset!`

(reset! my-number-atom 100)
(fact @my-number-atom => 100)
