From e24e525108f3581329b61d2d201db23b2758a8ea Mon Sep 17 00:00:00 2001 From: Joseph Swetnam Date: Thu, 22 Feb 2018 22:09:24 -0500 Subject: [PATCH 1/2] Add quote to `require` form under ## Examples --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2964741..e936681 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ Write transactions block other write transactions (though they do not block read ## Examples ``` clojure -(require [codax.core :as c]) +(require '[codax.core :as c]) ``` ### Simple Use From 1de3f658f08712fd85dad59aee77deec14f4e0cc Mon Sep 17 00:00:00 2001 From: Joseph Swetnam Date: Thu, 22 Feb 2018 22:12:26 -0500 Subject: [PATCH 2/2] `joda-time-format/formatter` => `formatters` `clj-time.format/formatter` does not accept a keyword argument (`:basic-date-time`). `formatters` is what is needed. --- src/codax/pathwise.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codax/pathwise.clj b/src/codax/pathwise.clj index 86c5c09..bb0bfe2 100644 --- a/src/codax/pathwise.clj +++ b/src/codax/pathwise.clj @@ -65,7 +65,7 @@ (defn encode-string [s] s) (defn decode-string [s] (string/join s)) -(def joda-time-formatter (joda-time-format/formatter :basic-date-time)) +(def joda-time-formatter (joda-time-format/formatters :basic-date-time)) (defn joda-time? [x] (instance? org.joda.time.DateTime x))