Skip to content

Commit

Permalink
Fix rename-keys to work with defrecords
Browse files Browse the repository at this point in the history
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
  • Loading branch information
arohner authored and stuarthalloway committed Jul 9, 2010
1 parent 836bc44 commit a070400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj/clojure/set.clj
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
(fn [m [old new]]
(if (and (not= old new)
(contains? m old))
(-> m (assoc new (m old)) (dissoc old))
(-> m (assoc new (get m old)) (dissoc old))
m))
map kmap))

Expand Down

0 comments on commit a070400

Please sign in to comment.