mirror of
https://github.com/MillironX/XAM.jl.git
synced 2024-11-27 03:49:54 +00:00
Use broadcast
This commit is contained in:
parent
08e253c297
commit
cc2af1976b
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ function keyvalues(metainfo::MetaInfo)::Vector{Pair{String,String}}
|
|||
if iscomment(metainfo)
|
||||
throw(ArgumentError("not a dictionary"))
|
||||
end
|
||||
return Pair{String,String}[key => val for (key, val) in zip(keys(metainfo), values(metainfo))]
|
||||
return Pair{String, String}.(keys(metainfo), values(metainfo))
|
||||
end
|
||||
|
||||
function Base.keys(metainfo::MetaInfo)
|
||||
|
|
Loading…
Reference in a new issue