Skip to content

Commit b1f1c71

Browse files
committed
Update comments
1 parent 30020b9 commit b1f1c71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/internal/pycore_typeobject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ PyTypeObject *_PyType_LookupByVersion(unsigned int version);
275275
typedef int (*_py_validate_type)(PyTypeObject *);
276276

277277
// It will verify the ``ty`` through user-defined validation function ``validate``,
278-
// and if the validation is passed, it will set the ``tp_version`` to the next
279-
// available version and return 0. Otherwise, it will return an error code.
278+
// and if the validation is passed, it will set the ``tp_version`` as valid
279+
// tp_version_tag from the ``ty``.
280280
extern int _PyType_Validate(PyTypeObject *ty, _py_validate_type validate, unsigned int *tp_version);
281281

282282
#ifdef __cplusplus

0 commit comments

Comments
 (0)