[amber-docs] RFR: Fixing the incorrect code example
David Alayachew
duke at openjdk.org
Fri Jan 26 16:30:50 UTC 2024
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`.
-------------
Commit messages:
- Fixing the incorrect code example
Changes: https://git.openjdk.org/amber-docs/pull/23/files
Webrev: https://webrevs.openjdk.org/?repo=amber-docs&pr=23&range=00
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/amber-docs/pull/23.diff
Fetch: git fetch https://git.openjdk.org/amber-docs.git pull/23/head:pull/23
PR: https://git.openjdk.org/amber-docs/pull/23
More information about the amber-dev
mailing list