Skip to content

Commit 8d2a193

Browse files
[3.11] Fix typos in ElementTree documentation (GH-108848) (GH-114855)
PI objects instead of comment objects. (cherry picked from commit de6f97c) Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
1 parent a9c2801 commit 8d2a193

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/xml.etree.elementtree.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ Functions
664664
given. Returns an element instance, representing a processing instruction.
665665

666666
Note that :class:`XMLParser` skips over processing instructions
667-
in the input instead of creating comment objects for them. An
667+
in the input instead of creating PI objects for them. An
668668
:class:`ElementTree` will only contain processing instruction nodes if
669669
they have been inserted into to the tree using one of the
670670
:class:`Element` methods.
@@ -1298,8 +1298,8 @@ TreeBuilder Objects
12981298

12991299
.. method:: pi(target, text)
13001300

1301-
Creates a comment with the given *target* name and *text*. If
1302-
``insert_pis`` is true, this will also add it to the tree.
1301+
Creates a process instruction with the given *target* name and *text*.
1302+
If ``insert_pis`` is true, this will also add it to the tree.
13031303

13041304
.. versionadded:: 3.8
13051305

0 commit comments

Comments
 (0)