diff --git a/Agents.md b/Agents.md index 7cbcb9a..73adb5d 100644 --- a/Agents.md +++ b/Agents.md @@ -15,7 +15,7 @@ Interacting with an agent is very similar to using atoms. If we wanted to repres And changing the account holder: ~~~clojure - (send! checking-account (comp #(assoc % :holder "your-name"))) + (send checking-account assoc :holder "your-name") ~~~ *** diff --git a/Atoms.md b/Atoms.md index e67e3c8..8044215 100644 --- a/Atoms.md +++ b/Atoms.md @@ -46,7 +46,7 @@ If we wanted to represent what we know about Sansa Stark as an atom: And changing her martial status: ~~~clojure - (swap! checking-account (comp #(assoc % :holder "your-name"))) + (swap! checking-account assoc :holder "your-name") ~~~ ***