Skip to content

Commit

Permalink
add compat annotation for map!(f, values(dict)) (from #31223)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet committed Mar 20, 2020
1 parent 1d2ef16 commit 5f556ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/abstractdict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,9 @@ Modifies `dict` by transforming each value from `val` to `f(val)`.
Note that the type of `dict` cannot be changed: if `f(val)` is not an instance of the value type
of `dict` then it will be converted to the value type if possible and otherwise raise an error.
!!! compat "Julia 1.2"
`map!(f, values(dict::AbstractDict))` requires Julia 1.2 or later.
# Examples
```jldoctest
julia> d = Dict(:a => 1, :b => 2)
Expand Down

0 comments on commit 5f556ef

Please sign in to comment.