]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (#25123)
authorZackery Spytz <zspytz@gmail.com>
Thu, 1 Apr 2021 17:03:33 +0000 (11:03 -0600)
committerGitHub <noreply@github.com>
Thu, 1 Apr 2021 17:03:33 +0000 (10:03 -0700)
It should be PyMethod_Type, not Py_MethodType.

Doc/howto/descriptor.rst

index 94aadd6f73a837278b846103fb36e23804285d7b..420d9b94306eaafa023c67d54afccc398a7cb3df 100644 (file)
@@ -1064,7 +1064,7 @@ roughly equivalent to:
 .. testcode::
 
     class MethodType:
-        "Emulate Py_MethodType in Objects/classobject.c"
+        "Emulate PyMethod_Type in Objects/classobject.c"
 
         def __init__(self, func, obj):
             self.__func__ = func