Skip to content

Commit 22bb426

Browse files
zsunbergJeffBezanson
authored andcommitted
fix dict map! docstring: "key type"->"value type" (#34040)
1 parent 1da8d7e commit 22bb426

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/abstractdict.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,8 @@ end
710710
map!(f, values(dict::AbstractDict))
711711
712712
Modifies `dict` by transforming each value from `val` to `f(val)`.
713-
Note that the type of `dict` cannot be changed: if `f(val)` is not an instance of the key type
714-
of `dict` then it will be converted to the key type if possible and otherwise raise an error.
713+
Note that the type of `dict` cannot be changed: if `f(val)` is not an instance of the value type
714+
of `dict` then it will be converted to the value type if possible and otherwise raise an error.
715715
716716
# Examples
717717
```jldoctest

0 commit comments

Comments
 (0)