diff --git a/src/sampling.jl b/src/sampling.jl index 4551476a..a80693dc 100644 --- a/src/sampling.jl +++ b/src/sampling.jl @@ -461,7 +461,7 @@ seqsample_d!(a::AbstractArray, x::AbstractArray) = seqsample_d!(default_rng(), a ### Interface functions (poly-algorithms) """ - sample([rng], a, [wv::AbstractWeights]) + sample([rng], a::AbstractArray, [wv::AbstractWeights]) Select a single random element of `a`. Sampling probabilities are proportional to the weights given in `wv`, if provided.