Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ab5728a

Browse files
authored
Add docstring to the available-zone-ids fn
Without the docs, it wasn't clear if it returned a set or a seq, and if the contents were strings or ZoneId objects, making inspection (or usage) of the code required
1 parent 1118a21 commit ab5728a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/java_time/zone.clj‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@
8181
:implicit-arities [1 2]
8282
([] (jt.clock/make (fn [^Clock c] (.getZone c)))))
8383

84-
(defn available-zone-ids []
84+
(defn available-zone-ids
85+
"Returns a set of string identifiers for all available ZoneIds."
86+
[]
8587
(ZoneId/getAvailableZoneIds))
8688

8789
;; offset date/time

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /