Skip to content

Commit 959d80e

Browse files
committed
formatting
1 parent 6cf6d8f commit 959d80e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vector_of_array.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,12 +725,14 @@ end
725725
end
726726

727727
# for VectorOfArray with multi-dimensional parent arrays of arrays where all elements are the same type
728-
@inline function Base.similar(vec::VectorOfArray{T, N, AT}) where {T, N, AT <: AbstractArray{<:AbstractArray{T}}}
728+
@inline function Base.similar(vec::VectorOfArray{
729+
T, N, AT}) where {T, N, AT <: AbstractArray{<:AbstractArray{T}}}
729730
return VectorOfArray(similar(Base.parent(vec)))
730731
end
731732

732733
# special-case when the multi-dimensional parent array is just an AbstractVector (call the old method)
733-
@inline function Base.similar(vec::VectorOfArray{T, N, AT}) where {T, N, AT <: AbstractVector{<:AbstractArray{T}}}
734+
@inline function Base.similar(vec::VectorOfArray{
735+
T, N, AT}) where {T, N, AT <: AbstractVector{<:AbstractArray{T}}}
734736
return Base.similar(vec, eltype(vec))
735737
end
736738

0 commit comments

Comments
 (0)