mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
clojure.html.markdown: Fix another typo
This commit is contained in:
parent
a6928aadc5
commit
1fb3f1e67c
@ -341,7 +341,7 @@ keymap ; => {:a 1, :b 2, :c 3}
|
|||||||
(swap! my-atom assoc :a 1) ; Sets my-atom to the result of (assoc {} :a 1)
|
(swap! my-atom assoc :a 1) ; Sets my-atom to the result of (assoc {} :a 1)
|
||||||
(swap! my-atom assoc :b 2) ; Sets my-atom to the result of (assoc {:a 1} :b 2)
|
(swap! my-atom assoc :b 2) ; Sets my-atom to the result of (assoc {:a 1} :b 2)
|
||||||
|
|
||||||
; Use '@' to dereference the atom and get the value
|
; Use '@' to dereference the atom and get the value
|
||||||
my-atom ;=> Atom<#...> (Returns the Atom object)
|
my-atom ;=> Atom<#...> (Returns the Atom object)
|
||||||
@my-atom ; => {:a 1 :b 2}
|
@my-atom ; => {:a 1 :b 2}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user