Skip to content

Commit 2be9e30

Browse files
committed
zip on 1.0
1 parent f33cb09 commit 2be9e30

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
@@ -80,7 +80,7 @@ function _promote_vectors(x::AbstractVector, y::AbstractVector)
8080
if isconcretetype(T)
8181
return convert(T, x), convert(T, y)
8282
else
83-
short = map(first promote, x, y)
83+
short = map(Base.splat(first promote), zip(x, y))
8484
return convert(typeof(short), x), convert(typeof(short), y)
8585
end
8686
end

0 commit comments

Comments
 (0)