📚 Fix misleading without-obj docstring

The docstring claimed the function removes nil values in addition to
the specified object, but the implementation only removes elements
equal to the given object. Fix the docstring in both data.cljc and
the local copy in files/changes.cljc.
This commit is contained in:
Andrey Antukh 2026-04-14 20:12:38 +00:00 committed by Belén Albeza
parent d73ab3ec92
commit 29ea1cc495
2 changed files with 2 additions and 2 deletions

View File

@ -393,7 +393,7 @@
(subvec v (inc index))))
(defn without-obj
"Clear collection from specified obj and without nil values."
"Return a vector with all elements equal to `o` removed."
[coll o]
(into [] (filter #(not= % o)) coll))

View File

@ -439,7 +439,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defn- without-obj
"Clear collection from specified obj and without nil values."
"Return a vector with all elements equal to `o` removed."
[coll o]
(into [] (filter #(not= % o)) coll))