Skip to content

Commit

Permalink
Merge pull request #1735 from jest/bug_traversable_mkstring_javadoc
Browse files Browse the repository at this point in the history
Correct prefix-delimiter-suffix in mk*() JavaDoc
  • Loading branch information
danieldietrich authored Dec 1, 2016
2 parents b729bcb + 056f273 commit 0f180a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions javaslang/src/main/java/javaslang/collection/Traversable.java
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ default String mkString() {
/**
* Joins the string representations of this elements using a specific delimiter.
* <p>
* 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
Expand All @@ -788,7 +788,7 @@ default String mkString(CharSequence delimiter) {
/**
* Joins the string representations of this elements using a specific delimiter, prefix and suffix.
* <p>
* 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
Expand All @@ -815,7 +815,7 @@ default CharSeq mkCharSeq() {
/**
* Joins the string representations of this elements using a specific delimiter.
* <p>
* 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}
Expand All @@ -827,7 +827,7 @@ default CharSeq mkCharSeq(CharSequence delimiter) {
/**
* Joins the string representations of this elements using a specific delimiter, prefix and suffix.
* <p>
* 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
Expand Down

0 comments on commit 0f180a7

Please sign in to comment.