diff --git a/base/abstractarray.jl b/base/abstractarray.jl index 045f10b376b49..2aae8f80caffa 100644 --- a/base/abstractarray.jl +++ b/base/abstractarray.jl @@ -2052,11 +2052,11 @@ collection. `destination` must be at least as large as the first collection. # Examples ```jldoctest -julia> x = zeros(3); +julia> a = zeros(3); -julia> map!(x -> x * 2, x, [1, 2, 3]); +julia> map!(x -> x * 2, a, [1, 2, 3]); -julia> x +julia> a 3-element Array{Float64,1}: 2.0 4.0