Skip to content

Commit

Permalink
Merge pull request #13 from SimonMarquis/patch-1
Browse files Browse the repository at this point in the history
Expose `Node.toXmlNode()` as public API
  • Loading branch information
martinbonnin authored Nov 28, 2024
2 parents 31738b2 + e3d10f7 commit 82d5e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/xoxo/xoxo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sealed interface XmlNode
*/
inline fun <reified T : Any> Any?.cast(): T = this as T

private fun Node.toXmlNode(): XmlNode? {
fun Node.toXmlNode(): XmlNode? {
return when (this) {
is Element -> XmlElement(this)
is Text -> XmlText(this)
Expand Down

0 comments on commit 82d5e3c

Please sign in to comment.