diff --git a/core/src/main/scala/cats/syntax/foldable.scala b/core/src/main/scala/cats/syntax/foldable.scala index 11a6e02d1e..12a79961ca 100644 --- a/core/src/main/scala/cats/syntax/foldable.scala +++ b/core/src/main/scala/cats/syntax/foldable.scala @@ -78,7 +78,7 @@ final class FoldableOps[F[_], A](private val fa: F[A]) extends AnyVal { /** * Make a string using `Show`, prefix, delimiter, and suffix. - * + * * Named as `mkString_` to avoid conflict. * * Example: @@ -104,10 +104,10 @@ final class FoldableOps[F[_], A](private val fa: F[A]) extends AnyVal { b.toString.dropRight(delim.length) } + suffix } - + /** * Make a string using `Show` and delimiter. - * + * * Named as `mkString_` to avoid conflict. * * Example: @@ -119,10 +119,10 @@ final class FoldableOps[F[_], A](private val fa: F[A]) extends AnyVal { * res0: String = 1,2,3 * scala> val el: List[Int] = List() * scala> el.mkString_(",") - * res1: String = + * res1: String = * }}} */ - def mkString_(delim: String)(implicit A: Show[A], F: Foldable[F]): String = + def mkString_(delim: String)(implicit A: Show[A], F: Foldable[F]): String = mkString_("", delim, "") /**