Skip to content

Commit a2b065a

Browse files
Merge pull request #1038 from dlfivefifty/patch-1
Fix UndefVarError
2 parents 441c1a2 + 085e09e commit a2b065a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/array.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ _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...),
79-
_ -> error("Mutating arrays is not supported -- called copyto!(::$(typeof(args))..., _...)")
78+
@adjoint! copyto!(xs, args...) = copyto!(xs, args...),
79+
_ -> error("Mutating arrays is not supported -- called copyto!(::$(typeof(xs)), _...)")
8080

8181
for f in [push!, pop!, pushfirst!, popfirst!]
8282
@eval @adjoint! $f(xs, x...) = $f(xs, x...),

0 commit comments

Comments
 (0)