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 <garydgreg...@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();
  * }

Reply via email to