Skip to content

Commit

Permalink
Update document
Browse files Browse the repository at this point in the history
  • Loading branch information
kyuden authored Jan 30, 2020
1 parent a1a8281 commit cfee7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xml/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func (document *XmlDocument) CreateTextNode(data string) (text *TextNode) {
dataPtr := unsafe.Pointer(&dataBytes[0])
nodePtr := C.xmlNewText((*C.xmlChar)(dataPtr))
if nodePtr != nil {
nodePtr.doc = (*_Ctype_struct__xmlDoc)(document.DocPtr())
nodePtr.doc = (*C.xmlDoc)(document.DocPtr())
text = NewNode(unsafe.Pointer(nodePtr), document).(*TextNode)
}
return
Expand Down

0 comments on commit cfee7e8

Please sign in to comment.