Skip to content

Commit

Permalink
(rebased and squashed commits) Update supported data types in TOML.pr…
Browse files Browse the repository at this point in the history
…int docstring (#41226)

Co-authored-by: Jonathan Doucette <[email protected]>
  • Loading branch information
jondeuce and jondeuce committed May 17, 2022
1 parent eed2dba commit bd85247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/TOML/src/TOML.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const ParserError = Internals.ParserError
Write `data` as TOML syntax to the stream `io`. If the keyword argument `sorted` is set to `true`,
sort tables according to the function given by the keyword argument `by`.
The following data types are supported: `AbstractDict`, `Integer`, `AbstractFloat`, `Bool`,
The following data types are supported: `AbstractDict`, `AbstractVector`, `AbstractString`, `Integer`, `AbstractFloat`, `Bool`,
`Dates.DateTime`, `Dates.Time`, `Dates.Date`. Note that the integers and floats
need to be convertible to `Float64` and `Int64` respectively. For other data types,
pass the function `to_toml` that takes the data types and returns a value of a
Expand Down

0 comments on commit bd85247

Please sign in to comment.