Skip to content

Commit 9e18f12

Browse files
authored
Fix UndefVarError
1 parent 1786bfe commit 9e18f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ _droplike(dy::Union{LinearAlgebra.Adjoint, LinearAlgebra.Transpose}, dxv::Abstra
7575
@adjoint! setindex!(xs::AbstractArray, x...) = setindex!(xs, x...),
7676
_ -> error("Mutating arrays is not supported -- called setindex!(::$(typeof(xs)), _...)")
7777

78-
@adjoint! copyto!(args...) = copyto!(args...),
78+
@adjoint! copyto!(xs, args...) = copyto!(xs, args...),
7979
_ -> error("Mutating arrays is not supported -- called copyto!(::$(typeof(xs)), _...)")
8080

8181
for f in [push!, pop!, pushfirst!, popfirst!]

0 commit comments

Comments
 (0)