Skip to content

Commit f878cf7

Browse files
fix copyto! error message
1 parent 1786bfe commit f878cf7

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
@@ -76,7 +76,7 @@ _droplike(dy::Union{LinearAlgebra.Adjoint, LinearAlgebra.Transpose}, dxv::Abstra
7676
_ -> error("Mutating arrays is not supported -- called setindex!(::$(typeof(xs)), _...)")
7777

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

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

0 commit comments

Comments
 (0)