Skip to content

Commit 3d152ca

Browse files
jla-gardnerkagalenko-m-b
authored andcommitted
correct error message (#743)
1 parent d3b92e8 commit 3d152ca

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
@@ -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)