From 7461979a9372741f6921a995f1af34fa3d021c89 Mon Sep 17 00:00:00 2001 From: Simone Carlo Surace <51025924+simsurace@users.noreply.github.com> Date: Tue, 6 Feb 2024 12:01:22 +0100 Subject: [PATCH] Satisfy reviewdog Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/flatten.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flatten.jl b/src/flatten.jl index 3d66fc2..08c8f23 100644 --- a/src/flatten.jl +++ b/src/flatten.jl @@ -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