We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82063b3 commit 7f584ceCopy full SHA for 7f584ce
lib/timex.ex
@@ -1474,7 +1474,7 @@ defmodule Timex do
1474
Same as beginning_of_month/1, except takes year and month as distinct arguments
1475
"""
1476
@spec beginning_of_month(Types.year(), Types.month()) :: Date.t() | {:error, term}
1477
- def beginning_of_month(year, month) when is_year(month) and is_month(month),
+ def beginning_of_month(year, month) when is_year(year) and is_month(month),
1478
do: %Date{year: year, month: month, day: 1}
1479
1480
def beginning_of_month(_, _),
0 commit comments