]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Minor fixes (GH-23422)
authorkj <28750310+Fidget-Spinner@users.noreply.github.com>
Wed, 25 Nov 2020 04:59:59 +0000 (11:59 +0700)
committerGitHub <noreply@github.com>
Wed, 25 Nov 2020 04:59:59 +0000 (13:59 +0900)
Doc/library/stdtypes.rst
Doc/whatsnew/3.10.rst

index 84d5a3a59f0b40237eaa36535d454ebb1ed86a37..59c2b84b52719c1628be01c5fe57cdc81a0a9189 100644 (file)
@@ -5065,7 +5065,7 @@ instantiated from the type::
 
       >>> class M(type):
       ...     def __or__(self, other):
-      ...     return "Hello"
+      ...         return "Hello"
       ...
       >>> class C(metaclass=M):
       ...     pass
index f3e433abf0828399ebd401449df3972d620fea43..c5efaaa5047e2b0085a7b476874853cc77baa620 100644 (file)
@@ -120,8 +120,8 @@ See :pep:`613` for more details.
 
 (Contributed by Mikhail Golubev in :issue:`41923`.)
 
-PEP604: New Type Union Operator
--------------------------------
+PEP 604: New Type Union Operator
+--------------------------------
 
 A new type union operator was introduced which enables the syntax ``X | Y``.
 This provides a cleaner way of expressing 'either type X or type Y' instead of