Skip to content

Commit 309498a

Browse files
martinsvalinwhatyouhide
authored andcommitted
Spelling, grammar and missing negation in Calendar docs (#4713)
1 parent f2dad7d commit 309498a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/elixir/lib/calendar.ex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ defmodule Calendar do
4848
@type std_offset :: integer
4949

5050
@doc """
51-
Builds a new date from propletic year, month and day of month.
51+
Builds a new date from proleptic year, month and day of month.
5252
"""
5353
@callback date(year, month, day) :: {:ok, Date.t} | {:error, atom}
5454

5555
@doc """
5656
Returns true if the given year is a leap year.
5757
5858
A leap year is a year of a longer length than normal. The exact meaning
59-
is up to the calendar. A calendar must return `false` if does not support
59+
is up to the calendar. A calendar must return `false` if it does not support
6060
the concept of leap years.
6161
"""
6262
@callback leap_year?(year) :: boolean
@@ -200,7 +200,7 @@ defmodule Date do
200200
@doc """
201201
Parses the extended "Date and time of day" format described by ISO8601:2004.
202202
203-
Raises it the format is invalid.
203+
Raises if the format is invalid.
204204
205205
## Examples
206206
@@ -465,7 +465,7 @@ defmodule Time do
465465
@doc """
466466
Parses the extended "Local time" format described by ISO8601:2004.
467467
468-
Raises it the format is invalid.
468+
Raises if the format is invalid.
469469
470470
## Examples
471471
@@ -788,7 +788,7 @@ defmodule NaiveDateTime do
788788
@doc """
789789
Parses the extended "Date and time of day" format described by ISO8601:2004.
790790
791-
Raises it the format is invalid.
791+
Raises if the format is invalid.
792792
793793
## Examples
794794
@@ -1131,7 +1131,7 @@ defmodule DateTime do
11311131
Only supports converting date times which are in the ISO calendar,
11321132
attempting to convert date times from other calendars will raise.
11331133
1134-
WARNING: the ISO8601 does contain the time zone nor its abbreviation,
1134+
WARNING: the ISO8601 does not contain the time zone nor its abbreviation,
11351135
which means information is lost when converting to such format. This
11361136
is also why this module does not provide a `from_iso8601/1` function,
11371137
as it is impossible to build a proper `DateTime` from only the

0 commit comments

Comments
 (0)