Skip to content

Commit 60f0057

Browse files
authored
doc: fix docstring for Dates.format (JuliaLang#56682)
1 parent 680803c commit 60f0057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/Dates/src/io.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ except that it does not truncate values longer than the width.
713713
When creating a `format` you can use any non-code characters as a separator. For example to
714714
generate the string "1996-01-15T00:00:00" you could use `format`: "yyyy-mm-ddTHH:MM:SS".
715715
Note that if you need to use a code character as a literal you can use the escape character
716-
backslash. The string "1996y01m" can be produced with the format "yyyy\\ymm\\m".
716+
backslash. The string "1996y01m" can be produced with the format raw"yyyy\\ymm\\m".
717717
"""
718718
function format(dt::TimeType, f::AbstractString; locale::Locale=ENGLISH)
719719
format(dt, DateFormat(f, locale))

0 commit comments

Comments
 (0)