Skip to content

Commit a2e74a4

Browse files
committed
Use copy! in Matrix constructor
1 parent db4fd6e commit a2e74a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/triangular.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Base.dataids(A::UpperOrLowerTriangular) = Base.dataids(A.data)
154154

155155
function Matrix{T}(U::UpperOrLowerTriangular) where {T}
156156
M = Matrix{T}(undef, size(U))
157-
_copyto!(M, U)
157+
copy!(M, U)
158158
return M
159159
end
160160

0 commit comments

Comments
 (0)