Skip to content

Commit

Permalink
Escape double quotes in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
verberktstan authored Jun 4, 2024
1 parent 3986354 commit 5d4ce50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swark/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
;; TODO: Add tests
(defn optional-args
"Returns a function that selects and renames keys, and adds defaults for sequentialargs (as destructured by &). Supply a props map containing permitted input keys as keys, and a map with :default & :rename as val.
`((optional-args {:name {:rename :person/name :default "Unnamed person"} :from {:rename :person/from :default "Nowhere"}}) {:name "Me"}) => #:person{:name "Me" :from "Nowhere"}`"
`((optional-args {:name {:rename :person/name :default \"Unnamed person\"} :from {:rename :person/from :default \"Nowhere\"}}) {:name \"Me\"}) => #:person{:name \"Me\" :from \"Nowhere\"}`"
[props]
(let [renames (map-vals :rename props)
defaults (map-vals :default props)]
Expand Down

0 comments on commit 5d4ce50

Please sign in to comment.