Skip to content

Commit 96622fc

Browse files
committed
perf
1 parent a465607 commit 96622fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java_time/single_field.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
(defmacro enumerated-entity [tp doc & {:keys [unit]}]
3939
(assert (string? doc))
4040
(let [tp (resolve-tag tp)
41-
fname (with-meta (symbol (jt.u/dashize (-> (str tp) (string/split #"\.") last))) {:tag tp})
41+
fname (with-meta (symbol (jt.u/dashize (-> (str tp) (string/split #"\.") peek))) {:tag tp})
4242
fields (symbol (str fname "-fields"))]
4343
`(do
4444
(def ~fields
@@ -93,7 +93,7 @@
9393
(assert (string? doc))
9494
(let [^Class tpcls (resolve tp)
9595
tp (symbol (.getName tpcls))
96-
fname (with-meta (symbol (jt.u/dashize (-> (str tp) (string/split #"\.") last))) {:tag tp})
96+
fname (with-meta (symbol (jt.u/dashize (-> (str tp) (string/split #"\.") peek))) {:tag tp})
9797
arg (gensym)]
9898
`(do
9999
(defn ^{:doc ~(str "True if `" tp "`.")} ~(symbol (str fname "?"))

0 commit comments

Comments
 (0)