Skip to content

Commit

Permalink
rename maybe type to undefined_or to avoid clashing with maybe st…
Browse files Browse the repository at this point in the history
…aement in OTP27
  • Loading branch information
asakura authored and oubiwann committed Jun 12, 2024
1 parent 70c03cf commit cc5a0c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/iso8601.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
minute(),
second() | float()}}.
-type datetime_plist() :: list({atom(), integer()}).
-type maybe(A) :: undefined | A.
-type undefined_or(A) :: undefined | A.
-type timestamp() :: {MegaSecs::integer(),
Secs::integer(),
MicroSecs::integer() | float()}.
Expand Down Expand Up @@ -364,8 +364,8 @@ make_date(Plist) ->
make_date(Year, ?V(month, Plist, 1), ?V(week, Plist), Plist).

-spec make_date (non_neg_integer(),
maybe(pos_integer()),
maybe(pos_integer()),
undefined_or(pos_integer()),
undefined_or(pos_integer()),
datetime_plist())
-> {calendar:date(), non_neg_integer()}.
%% @doc Return a `tuple' containing a date and - if the date is in week format
Expand Down

0 comments on commit cc5a0c4

Please sign in to comment.