From 4408c25109b4dac0617b1afa0e7f9277a6ab129d Mon Sep 17 00:00:00 2001 From: Joel Kaasinen Date: Wed, 28 Aug 2024 11:24:39 +0300 Subject: [PATCH] doc: mu/assoc and mu/dissoc only handle one key at a time fixes #386 --- src/malli/util.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/malli/util.cljc b/src/malli/util.cljc index 072aa6240..2c89517e9 100644 --- a/src/malli/util.cljc +++ b/src/malli/util.cljc @@ -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] @@ -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]