Skip to content

Commit

Permalink
Satisfy reviewdog
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
simsurace and github-actions[bot] authored Feb 6, 2024
1 parent bbc883a commit 7461979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flatten.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function flatten(::Type{T}, x::Tuple) where {T<:Real}
l1 = length(vec1)
l2 = length(vec2)
function unflatten_to_Tuple(v::Vector{T})
return (back1(v[1:l1]), back2(v[l1+1:l1+l2])...)
return (back1(v[1:l1]), back2(v[(l1 + 1):(l1 + l2)])...)
end
return vcat(vec1, vec2), unflatten_to_Tuple
end
Expand Down

0 comments on commit 7461979

Please sign in to comment.