Skip to content

Commit d869c36

Browse files
authored
Add doctest (#759)
1 parent 23d8b83 commit d869c36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dates.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ Return the units that correspond to a particular period.
2020
2121
# Examples
2222
23-
```julia
23+
```jldoctest
24+
julia> using Dates
25+
2426
julia> unit(Second(15)) == u"s"
2527
true
2628

0 commit comments

Comments
 (0)