Skip to content

Commit 6eb26d6

Browse files
committed
Address review comment
1 parent efefc51 commit 6eb26d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ object CommentParsing {
227227

228228
/** A map from tag name to all boundaries for this tag */
229229
def groupedSections(str: String, sections: List[(Int, Int)]): Map[String, List[(Int, Int)]] = {
230-
val map = mutable.Map.empty[String, List[(Int, Int)]].withDefault(_ => Nil)
230+
val map = mutable.Map.empty[String, List[(Int, Int)]].withDefaultValue(Nil)
231231
sections.reverse.foreach { bounds =>
232232
val tag = extractSectionTag(str, bounds)
233233
map.update(tag, (skipTag(str, bounds._1), bounds._2) :: map(tag))

0 commit comments

Comments
 (0)