File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -664,7 +664,7 @@ Functions
664
664
given. Returns an element instance, representing a processing instruction.
665
665
666
666
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
668
668
:class: `ElementTree ` will only contain processing instruction nodes if
669
669
they have been inserted into to the tree using one of the
670
670
:class: `Element ` methods.
@@ -1302,8 +1302,8 @@ TreeBuilder Objects
1302
1302
1303
1303
.. method :: pi(target, text)
1304
1304
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.
1307
1307
1308
1308
.. versionadded :: 3.8
1309
1309
You can’t perform that action at this time.
0 commit comments