Skip to content

Commit 72ff75c

Browse files
authored
Use t:Calendar.microsecond/0 in Duration docs (#14455)
1 parent 041d59b commit 72ff75c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/calendar/duration.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ defmodule Duration do
116116
hour: integer,
117117
minute: integer,
118118
second: integer,
119-
microsecond: {integer, 0..6}
119+
microsecond: Calendar.microsecond()
120120
}
121121

122122
@typedoc """
@@ -130,7 +130,7 @@ defmodule Duration do
130130
| {:hour, integer}
131131
| {:minute, integer}
132132
| {:second, integer}
133-
| {:microsecond, {integer, 0..6}}
133+
| {:microsecond, Calendar.microsecond()}
134134

135135
@typedoc """
136136
The duration type specifies a `%Duration{}` struct or a keyword list of valid duration unit pairs.

0 commit comments

Comments
 (0)