Skip to content

Commit

Permalink
Rename vars in Utility.combineAdjacentTextNodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ashawley committed Jun 26, 2018
1 parent 0fdfeee commit acab668
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/src/main/scala/scala/xml/Utility.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ object Utility extends AnyRef with parsing.TokenTests {

private def combineAdjacentTextNodes(children: Node*): Seq[Node] = {
children.foldRight(Seq.empty[Node]) {
case (Text(left), Text(right) +: accMinusLast) => Text(left + right) +: accMinusLast
case (n, acc) => n +: acc
case (Text(left), Text(right) +: nodes) => Text(left + right) +: nodes
case (n, nodes) => n +: nodes
}
}

Expand Down

0 comments on commit acab668

Please sign in to comment.