Skip to content

Commit 4f98560

Browse files
authored
Docs sample: clarify that a is an array (#942)
1 parent f4fcca4 commit 4f98560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sampling.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ seqsample_d!(a::AbstractArray, x::AbstractArray) = seqsample_d!(default_rng(), a
461461

462462
### Interface functions (poly-algorithms)
463463
"""
464-
sample([rng], a, [wv::AbstractWeights])
464+
sample([rng], a::AbstractArray, [wv::AbstractWeights])
465465
466466
Select a single random element of `a`. Sampling probabilities are proportional to
467467
the weights given in `wv`, if provided.

0 commit comments

Comments
 (0)