Skip to content

Commit

Permalink
Merge pull request JuliaLang#8686 from StephenVavasis/patch-11
Browse files Browse the repository at this point in the history
Generalize convert for dict
  • Loading branch information
stevengj committed Oct 15, 2014
2 parents 63ecbcb + 5c4e222 commit b1db9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ dict_with_eltype(kv, t) = Dict{Any,Any}(kv)
similar{K,V}(d::Dict{K,V}) = Dict{K,V}()

# conversion between Dict types
function convert{K,V}(::Type{Dict{K,V}},d::Dict)
function convert{K,V}(::Type{Dict{K,V}},d::Associative)
h = Dict{K,V}()
for (k,v) in d
ck = convert(K,k)
Expand Down

0 comments on commit b1db9ab

Please sign in to comment.