8268236: The documentation of the String.regionMatches method contains error

Reviewed-by: rriggs, dfuchs
This commit is contained in:
Jim Laskey 2021-06-28 13:51:07 +00:00
parent d9cb068f4b
commit e4c5446340

View file

@ -2169,9 +2169,9 @@ public final class String
* ignoring case if and only if {@code ignoreCase} is true.
* The sequences {@code tsequence} and {@code osequence} are compared,
* where {@code tsequence} is the sequence produced as if by calling
* {@code this.substring(toffset, len).codePoints()} and {@code osequence}
* is the sequence produced as if by calling
* {@code other.substring(ooffset, len).codePoints()}.
* {@code this.substring(toffset, toffset + len).codePoints()} and
* {@code osequence} is the sequence produced as if by calling
* {@code other.substring(ooffset, ooffset + len).codePoints()}.
* The result is {@code true} if and only if all of the following
* are true:
* <ul><li>{@code toffset} is non-negative.