File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -896,13 +896,18 @@ emptymutable(itr, ::Type{U}) where {U} = Vector{U}()
896896In-place [`copy`](@ref) of `src` into `dst`, discarding any pre-existing
897897elements in `dst`.
898898If `dst` and `src` are of the same type, `dst == src` should hold after
899- the call. If `dst` and `src` are multidimensional arrays, they must have
899+ the call. If `dst` and `src` are vector types, they must have equal
900+ offset. If `dst` and `src` are multidimensional arrays, they must have
900901equal [`axes`](@ref).
901902
902903$(_DOCS_ALIASING_WARNING)
903904
904905See also [`copyto!`](@ref).
905906
907+ !!! note
908+ When operating on vector types, if `dst` and `src` are not of the
909+ same length, `dst` is resized to `length(src)` prior to the `copy`.
910+
906911!!! compat "Julia 1.1"
907912 This method requires at least Julia 1.1. In Julia 1.0 this method
908913 is available from the `Future` standard library as `Future.copy!`.
You can’t perform that action at this time.
0 commit comments