Skip to content

Commit f603e21

Browse files
authored
fix spelling/grammar (#1486)
1 parent 626e7e9 commit f603e21

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/apache/commons/lang3/StringUtils.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5347,10 +5347,10 @@ public static String mid(final String str, int pos, final int len) {
53475347
* Similar to <a href="https://www.w3.org/TR/xpath/#function-normalize-space">https://www.w3.org/TR/xpath/#function-normalize -space</a>
53485348
*
53495349
* <p>
5350-
* The function returns the argument string with whitespace normalized by using {@code {@link #trim(String)}} to remove leading and trailing whitespace and
5350+
* This function returns the argument string with whitespace normalized by using {@code {@link #trim(String)}} to remove leading and trailing whitespace and
53515351
* then replacing sequences of whitespace characters by a single space.
53525352
* </p>
5353-
* In XML Whitespace characters are the same as those allowed by the <a href="https://www.w3.org/TR/REC-xml/#NT-S">S</a> production, which is S ::= (#x20 |
5353+
* In XML, whitespace characters are the same as those allowed by the <a href="https://www.w3.org/TR/REC-xml/#NT-S">S</a> production, which is S ::= (#x20 |
53545354
* #x9 | #xD | #xA)+
53555355
* <p>
53565356
* Java's regexp pattern \s defines whitespace as [ \t\n\x0B\f\r]
@@ -5368,7 +5368,7 @@ public static String mid(final String str, int pos, final int len) {
53685368
* </ul>
53695369
*
53705370
* <p>
5371-
* The difference is that Java's whitespace includes vertical tab and form feed, which this functional will also normalize. Additionally {@code {@link
5371+
* The difference is that Java's whitespace includes vertical tab and form feed, which this function will also normalize. Additionally {@code {@link
53725372
* #trim(String)}} removes control characters (char &lt;= 32) from both ends of this String.
53735373
* </p>
53745374
*
@@ -5414,7 +5414,7 @@ public static String normalizeSpace(final String str) {
54145414
* Finds the n-th index within a CharSequence, handling {@code null}. This method uses {@link String#indexOf(String)} if possible.
54155415
* <p>
54165416
* <strong>Note:</strong> The code starts looking for a match at the start of the target, incrementing the starting index by one after each successful match
5417-
* (unless {@code searchStr} is an empty string in which case the position is never incremented and {@code 0} is returned immediately). This means that
5417+
* (unless {@code searchStr} is an empty string, in which case the position is never incremented and {@code 0} is returned immediately). This means that
54185418
* matches may overlap.
54195419
* </p>
54205420
* <p>
@@ -5472,7 +5472,7 @@ public static int ordinalIndexOf(final CharSequence str, final CharSequence sear
54725472
/**
54735473
* Finds the n-th index within a String, handling {@code null}. This method uses {@link String#indexOf(String)} if possible.
54745474
* <p>
5475-
* Note that matches may overlap
5475+
* Note that matches may overlap.
54765476
* <p>
54775477
*
54785478
* <p>

0 commit comments

Comments
 (0)