Skip to content

Commit de6f97c

Browse files
Fix typos in ElementTree documentation (GH-108848)
PI objects instead of comment objects.
1 parent e6d6d5d commit de6f97c

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.
@@ -1302,8 +1302,8 @@ TreeBuilder Objects
13021302

13031303
.. method:: pi(target, text)
13041304

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

13081308
.. versionadded:: 3.8
13091309

0 commit comments

Comments
 (0)