From b0ca0b06cdc78f68d1fa2af5de4524b79494ff9e Mon Sep 17 00:00:00 2001 From: jla-gardner <92588218+jla-gardner@users.noreply.github.com> Date: Sat, 4 Dec 2021 16:13:42 +0000 Subject: [PATCH] correct error message (#743) --- src/sampling.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sampling.jl b/src/sampling.jl index b66424d7b..26907776c 100644 --- a/src/sampling.jl +++ b/src/sampling.jl @@ -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