Skip to content

Commit 7ea132d

Browse files
committed
zip on 1.0
1 parent d01052f commit 7ea132d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tangent_types/abstract_zero.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function _promote_vectors(x::AbstractVector, y::AbstractVector)
8181
if isconcretetype(T)
8282
return convert(T, x), convert(T, y)
8383
else
84-
short = map(first promote, x, y)
84+
short = map(Base.splat(first promote), zip(x, y))
8585
return convert(typeof(short), x), convert(typeof(short), y)
8686
end
8787
end

0 commit comments

Comments
 (0)