Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 94a9d93

Browse files
committedMay 27, 2018
Rename vars in Utility.combineAdjacentTextNodes
1 parent 66ec1d6 commit 94a9d93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

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

Lines changed: 2 additions & 2 deletions
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)
Please sign in to comment.