diff options
author | sabiwara <sabiwara@gmail.com> | 2022-01-04 19:30:29 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 11:30:29 +0100 |
commit | 29089ab98614dd4392a20dd3057c2161e4b29d2e (patch) | |
tree | 29e113c556602480bc912f22a1db0053d629ecde | |
parent | 06a02ac7f64b33daaa8ba7bf86951f464fa867f0 (diff) | |
download | elixir-29089ab98614dd4392a20dd3057c2161e4b29d2e.tar.gz |
Use consistent argument name in DateTime doc (#11537)
-rw-r--r-- | lib/elixir/lib/calendar/datetime.ex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/elixir/lib/calendar/datetime.ex b/lib/elixir/lib/calendar/datetime.ex index 95374945b..b84c85090 100644 --- a/lib/elixir/lib/calendar/datetime.ex +++ b/lib/elixir/lib/calendar/datetime.ex @@ -856,6 +856,8 @@ defmodule DateTime do """ @spec to_naive(Calendar.datetime()) :: NaiveDateTime.t() + def to_naive(datetime) + def to_naive(%{ calendar: calendar, year: year, @@ -895,6 +897,8 @@ defmodule DateTime do """ @spec to_date(Calendar.datetime()) :: Date.t() + def to_date(datetime) + def to_date(%{ year: year, month: month, @@ -925,6 +929,8 @@ defmodule DateTime do """ @spec to_time(Calendar.datetime()) :: Time.t() + def to_time(datetime) + def to_time(%{ year: _, month: _, |