Skip to content

Commit

Permalink
Docs sample: clarify that a is an array (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp authored Nov 6, 2024
1 parent f4fcca4 commit 4f98560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sampling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4f98560

Please sign in to comment.