From bb1a70c339c39fa1573406051faf93dc6320d88f Mon Sep 17 00:00:00 2001 From: Nathan Marz Date: Fri, 19 Jun 2015 14:27:22 -0400 Subject: [PATCH] fix api doc for cond-path --- src/clj/com/rpl/specter.clj | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/clj/com/rpl/specter.clj b/src/clj/com/rpl/specter.clj index 76bd863..71da0e7 100644 --- a/src/clj/com/rpl/specter.clj +++ b/src/clj/com/rpl/specter.clj @@ -185,10 +185,11 @@ (->PutValCollector val)) (defn cond-path - "Takes in alternating cond-fn selector cond-fn selector... - Tests the structure on the cond-fn, and if it matches uses the following selector for - the rest of the selector. Otherwise, it moves on to the next selector. If nothing - matches, then the structure is not selected." + "Takes in alternating cond-path selector cond-path selector... + Tests the structure if selecting with cond-path returns anything. + If so, it uses the following selector for this portion of the navigation. + Otherwise, it tries the next cond-path. If nothing matches, then the structure + is not selected." [& conds] (->> conds (partition 2)