Skip to content

Commit

Permalink
correct error message (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
jla-gardner authored Dec 4, 2021
1 parent 757a271 commit b0ca0b0
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 @@ -916,7 +916,7 @@ function sample!(rng::AbstractRNG, a::AbstractArray, wv::AbstractWeights, x::Abs
end
end
else
k <= n || error("Cannot draw $n samples from $k samples without replacement.")
k <= n || error("Cannot draw $k samples from $n samples without replacement.")
efraimidis_aexpj_wsample_norep!(rng, a, wv, x; ordered=ordered)
end
return x
Expand Down

0 comments on commit b0ca0b0

Please sign in to comment.