Skip to content

Commit

Permalink
Merge pull request #744 from som-snytt/issue/12658-nodebuffer-append
Browse files Browse the repository at this point in the history
NodeBuffer append is this.type
  • Loading branch information
dubinsky authored Nov 27, 2024
2 parents d9d0f2d + 6072f83 commit 9a80bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/main/scala/scala/xml/NodeBuffer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class NodeBuffer extends scala.collection.mutable.ArrayBuffer[Node] with ScalaVe
* @param o converts to an xml node and adds to this node buffer
* @return this nodebuffer
*/
def &+(o: Any): NodeBuffer = {
def &+(o: Any): this.type = {
o match {
case null | _: Unit | Text("") => // ignore
case it: Iterator[?] => it.foreach(&+)
Expand Down

0 comments on commit 9a80bd3

Please sign in to comment.