diff options
author | Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> | 2024-02-01 09:34:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-01 09:34:04 (GMT) |
commit | de6f97cd3519c5d8528d8ca1bb00fce4e9969671 (patch) | |
tree | 72e551c83774b658be062f238531039631d830d6 /Doc | |
parent | e6d6d5dcc00af50446761b0c4d20bd6e92380135 (diff) | |
download | cpython-de6f97cd3519c5d8528d8ca1bb00fce4e9969671.zip cpython-de6f97cd3519c5d8528d8ca1bb00fce4e9969671.tar.gz cpython-de6f97cd3519c5d8528d8ca1bb00fce4e9969671.tar.bz2 |
Fix typos in ElementTree documentation (GH-108848)
PI objects instead of comment objects.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/xml.etree.elementtree.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst index fe92400..bb6773c 100644 --- a/Doc/library/xml.etree.elementtree.rst +++ b/Doc/library/xml.etree.elementtree.rst @@ -664,7 +664,7 @@ Functions given. Returns an element instance, representing a processing instruction. Note that :class:`XMLParser` skips over processing instructions - in the input instead of creating comment objects for them. An + in the input instead of creating PI objects for them. An :class:`ElementTree` will only contain processing instruction nodes if they have been inserted into to the tree using one of the :class:`Element` methods. @@ -1302,8 +1302,8 @@ TreeBuilder Objects .. method:: pi(target, text) - Creates a comment with the given *target* name and *text*. If - ``insert_pis`` is true, this will also add it to the tree. + Creates a process instruction with the given *target* name and *text*. + If ``insert_pis`` is true, this will also add it to the tree. .. versionadded:: 3.8 |