Skip to content

Commit b88e115

Browse files
committed
[skip ci] Piggy-back trivial whitespace cleanup that was missed in PR pybind#5669
1 parent 1e21e37 commit b88e115

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/advanced/classes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ You can do that using ``py::custom_type_setup``:
13841384
auto *type = &heap_type->ht_type;
13851385
type->tp_flags |= Py_TPFLAGS_HAVE_GC;
13861386
type->tp_traverse = [](PyObject *self_base, visitproc visit, void *arg) {
1387-
// https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_traverse
1387+
// https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_traverse
13881388
#if PY_VERSION_HEX >= 0x03090000
13891389
Py_VISIT(Py_TYPE(self_base));
13901390
#endif

tests/test_custom_type_setup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ TEST_SUBMODULE(custom_type_setup, m) {
2626
auto *type = &heap_type->ht_type;
2727
type->tp_flags |= Py_TPFLAGS_HAVE_GC;
2828
type->tp_traverse = [](PyObject *self_base, visitproc visit, void *arg) {
29-
// https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_traverse
29+
// https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_traverse
3030
#if PY_VERSION_HEX >= 0x03090000
3131
Py_VISIT(Py_TYPE(self_base));
3232
#endif

0 commit comments

Comments
 (0)