Skip to content

Commit ff5d841

Browse files
committed
cleanup code
1 parent e6a51fa commit ff5d841

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/array.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,10 @@ function copyto!(dest::CatArrOrSub, dstart::Integer,
415415
(dstart destinds && dstart+n-1 destinds) || throw(BoundsError(dest, dstart:dstart+n-1))
416416
(sstart srcinds && sstart+n-1 srcinds) || throw(BoundsError(src, sstart:sstart+n-1))
417417

418-
drefs = CategoricalArrays.refs(dest)
419-
srefs = CategoricalArrays.refs(src)
420-
dpool = CategoricalArrays.pool(dest)
421-
spool = CategoricalArrays.pool(src)
418+
drefs = refs(dest)
419+
srefs = refs(src)
420+
dpool = pool(dest)
421+
spool = pool(src)
422422

423423
if isordered(dest)
424424
remap = Vector{eltype(drefs)}(undef, length(levels(src)))
@@ -701,7 +701,7 @@ function Base.push!(A::CategoricalVector, item)
701701
A
702702
end
703703

704-
function Base.append!(A::CategoricalVector, B::AbstractArary)
704+
function Base.append!(A::CategoricalVector, B::AbstractArray)
705705
len = length(A)
706706
len2 = length(B)
707707
resize!(A.refs, len + len2)

0 commit comments

Comments
 (0)