Skip to content

Commit 7461979

Browse files
Satisfy reviewdog
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent bbc883a commit 7461979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flatten.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function flatten(::Type{T}, x::Tuple) where {T<:Real}
8484
l1 = length(vec1)
8585
l2 = length(vec2)
8686
function unflatten_to_Tuple(v::Vector{T})
87-
return (back1(v[1:l1]), back2(v[l1+1:l1+l2])...)
87+
return (back1(v[1:l1]), back2(v[(l1 + 1):(l1 + l2)])...)
8888
end
8989
return vcat(vec1, vec2), unflatten_to_Tuple
9090
end

0 commit comments

Comments
 (0)