Skip to content

Commit

Permalink
Merge pull request #41 from JuliaData/bkamins-patch-2
Browse files Browse the repository at this point in the history
Make a docstring of PooledArray more precise
  • Loading branch information
quinnj authored Oct 29, 2020
2 parents 0d3fdfd + c899d80 commit 7dd3ddc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/PooledArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ _widen(::Type{UInt32}) = UInt64
"""
PooledArray(array, [reftype])
Convert the given array to a PooledArray where each element will be referenced
as an integer of the given type. If no `reftype` is specified one is chosen
automatically based on the number of unique elements.
Freshly allocate `PooledArray` using the given array as a source where each
element will be referenced as an integer of the given type.
If no `reftype` is specified one is chosen automatically based on the number of unique elements.
If `array` is not a `PooledArray` then the order of elements in `refpool` in the resulting
`PooledArray` is the order of first appereance of elements in `array`.
"""
PooledArray

Expand Down

0 comments on commit 7dd3ddc

Please sign in to comment.