summaryrefslogtreecommitdiffstats
path: root/vespajlib
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2020-02-26 08:46:44 +0100
committerJon Bratseth <bratseth@verizonmedia.com>2020-02-26 08:46:44 +0100
commite4beb4bb3a014273c28e7865cf9528689186cf16 (patch)
tree8b7e147cce248b3dbc59240cbf1ee4a360ba4ba2 /vespajlib
parent51e2ea0faecddf02515c4215ba5bbc8bd7b4185a (diff)
Fix comment
Diffstat (limited to 'vespajlib')
-rw-r--r--vespajlib/src/main/java/com/yahoo/text/Text.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/text/Text.java b/vespajlib/src/main/java/com/yahoo/text/Text.java
index 4ab3e833eb6..85b28639d89 100644
--- a/vespajlib/src/main/java/com/yahoo/text/Text.java
+++ b/vespajlib/src/main/java/com/yahoo/text/Text.java
@@ -178,7 +178,7 @@ public final class Text {
* Returns a string which is never larger than the given number of characters.
* If the string is longer than the given length it will be truncated.
* If length is 4 or less the string will be truncated to length.
- * If length is longer than 4, * it will be truncated at length-4 with " ..." added at the end.
+ * If length is longer than 4, it will be truncated at length-4 with " ..." added at the end.
*/
public static String truncate(String s, int length) {
if (s.length() <= length) return s;