mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
📚 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:
parent
d73ab3ec92
commit
29ea1cc495
@ -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))
|
||||
|
||||
|
||||
@ -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))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user