Skip to content

Commit 8d17d2b

Browse files
Doc: Minor fixes (GH-23422)
1 parent 2d44a6b commit 8d17d2b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/library/stdtypes.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -5065,7 +5065,7 @@ instantiated from the type::
50655065

50665066
>>> class M(type):
50675067
... def __or__(self, other):
5068-
... return "Hello"
5068+
... return "Hello"
50695069
...
50705070
>>> class C(metaclass=M):
50715071
... pass

Doc/whatsnew/3.10.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ See :pep:`613` for more details.
120120

121121
(Contributed by Mikhail Golubev in :issue:`41923`.)
122122

123-
PEP604: New Type Union Operator
124-
-------------------------------
123+
PEP 604: New Type Union Operator
124+
--------------------------------
125125

126126
A new type union operator was introduced which enables the syntax ``X | Y``.
127127
This provides a cleaner way of expressing 'either type X or type Y' instead of

0 commit comments

Comments
 (0)