You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/03/14 11:59:08 UTC
[commons-rng] branch master updated: Fixed userguide typo in
example code for CollectionSampler.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git
The following commit(s) were added to refs/heads/master by this push:
new 637f97c Fixed userguide typo in example code for CollectionSampler.
637f97c is described below
commit 637f97c01ff8d41031eaf4c2fd493667ad408f46
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Mar 14 11:59:03 2019 +0000
Fixed userguide typo in example code for CollectionSampler.
---
src/site/apt/userguide/rng.apt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/site/apt/userguide/rng.apt b/src/site/apt/userguide/rng.apt
index f796f87..1d599c3 100644
--- a/src/site/apt/userguide/rng.apt
+++ b/src/site/apt/userguide/rng.apt
@@ -350,7 +350,7 @@ list.add("RNG");
CollectionSampler<String> sampler = new CollectionSampler<String>(RandomSource.create(RandomSource.MWC_256),
list, 1);
-String word = sampler.sample().get(0);
+String word = sampler.sample();
+--------------------------+
[]