Skip to content

Commit 8d5b213

Browse files
authored
Use the right function in the example (#12582)
1 parent 54756a7 commit 8d5b213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/calendar/naive_datetime.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ defmodule NaiveDateTime do
12381238
To calculate the end of day of a `DateTime`, call this function, then convert back to a `DateTime`:
12391239
12401240
datetime
1241-
|> NaiveDateTime.beginning_of_day()
1241+
|> NaiveDateTime.end_of_day()
12421242
|> DateTime.from_naive(datetime.timezone)
12431243
12441244
Note that the end of the day may not exist or be ambiguous

0 commit comments

Comments
 (0)