Skip to content

Commit acab668

Browse files
committed
Rename vars in Utility.combineAdjacentTextNodes
1 parent 0fdfeee commit acab668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/src/main/scala/scala/xml/Utility.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ object Utility extends AnyRef with parsing.TokenTests {
5252

5353
private def combineAdjacentTextNodes(children: Node*): Seq[Node] = {
5454
children.foldRight(Seq.empty[Node]) {
55-
case (Text(left), Text(right) +: accMinusLast) => Text(left + right) +: accMinusLast
56-
case (n, acc) => n +: acc
55+
case (Text(left), Text(right) +: nodes) => Text(left + right) +: nodes
56+
case (n, nodes) => n +: nodes
5757
}
5858
}
5959

0 commit comments

Comments
 (0)