Skip to content

Commit

Permalink
Merge pull request #1099 from metosin/fix/doc-differences
Browse files Browse the repository at this point in the history
doc: mu/assoc and mu/dissoc only handle one key at a time
  • Loading branch information
opqdonut authored Aug 28, 2024
2 parents 7d64597 + 4408c25 commit 50da02b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/malli/util.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
options)))

(defn dissoc
"Like [[clojure.core/dissoc]], but for EntrySchemas."
"Like [[clojure.core/dissoc]], but for EntrySchemas. Only supports one key at a time."
([?schema key]
(dissoc ?schema key nil))
([?schema key options]
Expand Down Expand Up @@ -328,7 +328,7 @@
(when schema (m/-get schema k default)))))

(defn assoc
"Like [[clojure.core/assoc]], but for LensSchemas."
"Like [[clojure.core/assoc]], but for LensSchemas. Only supports one key-value pair at a time."
([?schema key value]
(assoc ?schema key value nil))
([?schema key value options]
Expand Down

0 comments on commit 50da02b

Please sign in to comment.