You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/05/20 17:11:46 UTC
(commons-text) branch master updated: Javadoc: Fix example
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git
The following commit(s) were added to refs/heads/master by this push:
new 31e3f0ee Javadoc: Fix example
31e3f0ee is described below
commit 31e3f0ee29d00f063869fc98a753626bd26a26e3
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Tue May 20 13:11:41 2025 -0400
Javadoc: Fix example
---
src/main/java/org/apache/commons/text/TextRandomProvider.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/text/TextRandomProvider.java b/src/main/java/org/apache/commons/text/TextRandomProvider.java
index 23ba9173..dbdf9028 100644
--- a/src/main/java/org/apache/commons/text/TextRandomProvider.java
+++ b/src/main/java/org/apache/commons/text/TextRandomProvider.java
@@ -34,7 +34,7 @@ import java.util.function.IntUnaryOperator;
* {@code
* UniformRandomProvider rng = RandomSource.create(...);
* RandomStringGenerator gen = RandomStringGenerator.builder()
- * .usingRandom(rng::applyAsInt)
+ * .usingRandom(rng::nextInt)
* // additional builder calls as needed
* .build();
* }