Skip to content

Commit a456bbf

Browse files
committed
Show correct format documentation
Shows the `Dates.format` table which was the behaviour in the Julia 0.6 documentation.
1 parent efd794e commit a456bbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/Dates/docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ Dates.DateTime(::Dates.Period)
654654
Dates.DateTime(::Function, ::Any...)
655655
Dates.DateTime(::Dates.TimeType)
656656
Dates.DateTime(::AbstractString, ::AbstractString)
657-
Dates.format
657+
Dates.format(::Dates.TimeType, ::AbstractString)
658658
Dates.DateFormat
659659
Dates.@dateformat_str
660660
Dates.DateTime(::AbstractString, ::Dates.DateFormat)

stdlib/Dates/src/io.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ All subtypes of `AbstractDateToken` must define this method in order
3434
to be able to print a Date / DateTime object according to a `DateFormat`
3535
containing that token.
3636
"""
37-
function format end
37+
format(io::IO, tok::AbstractDateToken, dt::TimeType, locale)
3838

3939
# fallback to tryparsenext/format methods that don't care about locale
4040
@inline function tryparsenext(d::AbstractDateToken, str, i, len, locale)

0 commit comments

Comments
 (0)