leethomason / tinyxml2

TinyXML2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs.
zlib License
5.04k stars 1.83k forks source link

Fix: typo in the `XMLNode::DeepClone` description #998

Closed Sigmarik closed 2 weeks ago

Sigmarik commented 2 weeks ago

There is a typo in the XMLNode::DeepClone description ("... the memory will be allocated is the specified XMLDocument.").

    /**
        Make a copy of this node and all its children.

        If the 'target' is null, then the nodes will
        be allocated in the current document. If 'target'
        is specified, the memory will be allocated is the
        specified XMLDocument.

        NOTE: This is probably not the correct tool to
        copy a document, since XMLDocuments can have multiple
        top level XMLNodes. You probably want to use
        XMLDocument::DeepCopy()
    */
    XMLNode* DeepClone( XMLDocument* target ) const;

This pull request is aimed to fix it.

Thanks.