Skip to content

Commit 81ff9f2

Browse files
JamesWrigleyKristofferC
authored andcommitted
Type-assert the return type of collect(...) in TOML (#59932)
(cherry picked from commit fda084f)
1 parent 4fa4f8a commit 81ff9f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/TOML/src/print.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function print_integer(io::IO, value::Integer)
117117
end
118118

119119
function print_inline_table(f::Function, io::IO, value::AbstractDict, sorted::Bool)
120-
vkeys = collect(keys(value))
120+
vkeys = collect(keys(value))::AbstractArray
121121
if sorted
122122
sort!(vkeys)
123123
end

0 commit comments

Comments
 (0)