Skip to content

Commit 4e50f75

Browse files
committed
Fix typo in local variable name
1 parent 0113765 commit 4e50f75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ public static String abbreviateMiddle(final String str, final String middle, fin
420420
if (isAnyEmpty(str, middle) || length >= str.length() || length < middle.length() + 2) {
421421
return str;
422422
}
423-
final int targetSting = length - middle.length();
424-
final int startOffset = targetSting / 2 + targetSting % 2;
425-
final int endOffset = str.length() - targetSting / 2;
423+
final int targetString = length - middle.length();
424+
final int startOffset = targetString / 2 + targetString % 2;
425+
final int endOffset = str.length() - targetString / 2;
426426
return str.substring(0, startOffset) + middle + str.substring(endOffset);
427427
}
428428

0 commit comments

Comments
 (0)