Skip to content

Commit b894420

Browse files
committed
Fix #5463: Replace the call to the String#lines method
1 parent 36281b3 commit b894420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/util/ParsedComment.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ object ParsedComment {
148148
* @return The list of items, in markdown.
149149
*/
150150
private def toMarkdownList(ctx: Context, items: List[String]): String = {
151-
val formattedItems = items.map(_.lines.mkString(System.lineSeparator + " "))
151+
val formattedItems = items.map(_.linesIterator.mkString(System.lineSeparator + " "))
152152
formattedItems.mkString(" - ", System.lineSeparator + " - ", "")
153153
}
154154

0 commit comments

Comments
 (0)