[amber-docs] Integrated: Fixing the incorrect code example
David Alayachew
duke at openjdk.org
Sun Feb 4 18:20:08 UTC 2024
On Fri, 26 Jan 2024 16:25:32 GMT, David Alayachew <duke at openjdk.org> wrote:
> There are only 3 methods on java.util.regex.Matcher that have the name group. Here they are.
>
> https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/regex/Matcher.html#group()
>
> https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/regex/Matcher.html#group(int)
>
> https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/regex/Matcher.html#group(java.lang.String)
>
> And since this is an IntStream, the only possible method that could be matched is the 2nd link above. Based on that, it is clear that the code example meant to put an `m` instead of `Matcher`.
This pull request has now been integrated.
Changeset: 671d496d
Author: David Alayachew <davidalayachew at gmail.com>
Committer: Gavin Bierman <gbierman at openjdk.org>
URL: https://git.openjdk.org/amber-docs/commit/671d496d50d2f176f67645f3209ceafd8f390992
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Fixing the incorrect code example
-------------
PR: https://git.openjdk.org/amber-docs/pull/23
More information about the amber-dev
mailing list