Skip to content

Commit b0ca0b0

Browse files
authored
correct error message (#743)
1 parent 757a271 commit b0ca0b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sampling.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ function sample!(rng::AbstractRNG, a::AbstractArray, wv::AbstractWeights, x::Abs
916916
end
917917
end
918918
else
919-
k <= n || error("Cannot draw $n samples from $k samples without replacement.")
919+
k <= n || error("Cannot draw $k samples from $n samples without replacement.")
920920
efraimidis_aexpj_wsample_norep!(rng, a, wv, x; ordered=ordered)
921921
end
922922
return x

0 commit comments

Comments
 (0)