Skip to content

Commit

Permalink
Fix typespec of DateTime.from_unix! (elixir-lang#5810)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubery authored and ericmj committed Feb 23, 2017
1 parent 3b7f47b commit 2340f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir/lib/calendar.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ defmodule DateTime do
When a Unix time before that moment is passed to `from_unix!/2`, an ArgumentError will be raised.
"""
@spec from_unix!(non_neg_integer, :native | System.time_unit) :: DateTime.t
@spec from_unix!(integer, :native | System.time_unit) :: DateTime.t
def from_unix!(integer, unit \\ :second) when is_atom(unit) do
case from_unix(integer, unit) do
{:ok, datetime} ->
Expand Down

0 comments on commit 2340f23

Please sign in to comment.