]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in ElementTree documentation (GH-108848)
authorChristophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
Thu, 1 Feb 2024 09:34:04 +0000 (10:34 +0100)
committerGitHub <noreply@github.com>
Thu, 1 Feb 2024 09:34:04 +0000 (11:34 +0200)
PI objects instead of comment objects.

Doc/library/xml.etree.elementtree.rst

index fe92400fb08dfdcf56797b725496a959c70d1d06..bb6773c361a9b41341c88acf28859d1b7d85e9d3 100644 (file)
@@ -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