Skip to content

Commit

Permalink
contrib.str: improve docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
dustingetz committed Sep 13, 2024
1 parent 3f2902a commit 7628a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contrib/str.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
(clojure.core/not-empty "a") := "a"
)

(defn blank->nil "Nullify empty strings, identity on all other values." [s]
(defn blank->nil "Nullify blank whitespace strings, identity on all other values." [s]
(if-not (string? s)
s ; don't fail
(if-not (clojure.string/blank? s) s nil)))
Expand Down

0 comments on commit 7628a0c

Please sign in to comment.