Skip to content

Commit c33674d

Browse files
committed
using AbstractArray instead of Array
1 parent 96091a1 commit c33674d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_partition.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ end
103103
Base.mapreduce(f,op,A::ArrayPartition) = mapreduce(f,op,(mapreduce(f,op,x) for x in A.x))
104104
Base.any(f,A::ArrayPartition) = any(f,(any(f,x) for x in A.x))
105105
Base.any(f::Function,A::ArrayPartition) = any(f,(any(f,x) for x in A.x))
106-
function Base.copyto!(dest::Array,A::ArrayPartition)
106+
function Base.copyto!(dest::AbstractArray,A::ArrayPartition)
107107
@assert length(dest) == length(A)
108108
cur = 1
109109
@inbounds for i in 1:length(A.x)

0 commit comments

Comments
 (0)