From 056f27341c8db24830d70e8f166487fdaadf4ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemek=20Weso=C5=82ek?= Date: Thu, 1 Dec 2016 12:35:10 +0100 Subject: [PATCH] Correct prefix-delimiter-suffix in mk*() JavaDoc --- .../src/main/java/javaslang/collection/Traversable.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/javaslang/src/main/java/javaslang/collection/Traversable.java b/javaslang/src/main/java/javaslang/collection/Traversable.java index 38656d0044..d1396371e0 100644 --- a/javaslang/src/main/java/javaslang/collection/Traversable.java +++ b/javaslang/src/main/java/javaslang/collection/Traversable.java @@ -776,7 +776,7 @@ default String mkString() { /** * Joins the string representations of this elements using a specific delimiter. *

- * This has the same effect as calling {@code mkString(delimiter, "", "")}. + * This has the same effect as calling {@code mkString("", delimiter, "")}. * * @param delimiter A delimiter string put between string representations of elements of this * @return A new String @@ -788,7 +788,7 @@ default String mkString(CharSequence delimiter) { /** * Joins the string representations of this elements using a specific delimiter, prefix and suffix. *

- * Example: {@code List.of("a", "b", "c").mkString(", ", "Chars(", ")") = "Chars(a, b, c)"} + * Example: {@code List.of("a", "b", "c").mkString("Chars(", ", ", ")") = "Chars(a, b, c)"} * * @param prefix prefix of the resulting string * @param delimiter A delimiter string put between string representations of elements of this @@ -815,7 +815,7 @@ default CharSeq mkCharSeq() { /** * Joins the string representations of this elements using a specific delimiter. *

- * This has the same effect as calling {@code mkCharSeq(delimiter, "", "")}. + * This has the same effect as calling {@code mkCharSeq("", delimiter, "")}. * * @param delimiter A delimiter string put between string representations of elements of this * @return A new {@link CharSeq} @@ -827,7 +827,7 @@ default CharSeq mkCharSeq(CharSequence delimiter) { /** * Joins the string representations of this elements using a specific delimiter, prefix and suffix. *

- * Example: {@code List.of("a", "b", "c").mkCharSeq(", ", "Chars(", ")") = CharSeq.of("Chars(a, b, c))"} + * Example: {@code List.of("a", "b", "c").mkCharSeq("Chars(", ", ", ")") = CharSeq.of("Chars(a, b, c))"} * * @param prefix prefix of the resulting {@link CharSeq} * @param delimiter A delimiter string put between string representations of elements of this