Skip to content

Commit 500afcb

Browse files
committed
Update code comment
1 parent 6937b53 commit 500afcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2777,7 +2777,7 @@ _PyObject_LookupSpecial(PyObject *self, PyObject *attr)
27772777
// is null and `method_and_self[1]` is `self`. On exit, `method_and_self[0]`
27782778
// is the method object and `method_and_self[1]` is `self` if the method is
27792779
// not bound.
2780-
// Return 0 on success, -1 on error or if the method is missing.
2780+
// Return 1 on success, -1 on error, and 0 if the method is missing.
27812781
int
27822782
_PyObject_LookupSpecialMethod(PyObject *attr, _PyStackRef *method_and_self)
27832783
{

0 commit comments

Comments
 (0)