Skip to content

Commit

Permalink
fix replace-values
Browse files Browse the repository at this point in the history
  • Loading branch information
jaycfields committed Mar 2, 2012
1 parent a83adb6 commit 0197c30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion project.clj
@@ -1,4 +1,4 @@
(defproject jry "1.0.4"
(defproject jry "1.0.5"
:description "general clojure functions"
:jar-name "jry.jar"
:dependencies [[org.clojure/clojure "1.3.0"]]
Expand Down
6 changes: 3 additions & 3 deletions src/jry/core.clj
Expand Up @@ -85,7 +85,7 @@
(defn replace-values [m replacements]
(reduce
(fn [r [k v]]
(if (contains? m k)
(assoc m k v)
m))
(if (contains? r k)
(assoc r k v)
r))
m replacements))

0 comments on commit 0197c30

Please sign in to comment.