From 1e6172d4055d654df466f32b8327de7145bc9ea3 Mon Sep 17 00:00:00 2001 From: Bruce Merry Date: Sun, 8 Oct 2017 11:28:04 +0200 Subject: [PATCH] Fix some minor mistakes in comments on struct instance --- include/pybind11/detail/common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index 6d328ba8..b39cc0ec 100644 --- a/include/pybind11/detail/common.h +++ b/include/pybind11/detail/common.h @@ -388,7 +388,7 @@ struct instance { uint8_t *status; } nonsimple; }; - /// Weak references (needed for keep alive): + /// Weak references PyObject *weakrefs; /// If true, the pointer is owned which means we're free to manage it with a holder. bool owned : 1; @@ -405,10 +405,10 @@ struct instance { * (which is typically the size of two pointers), or when multiple inheritance is used on the * python side. Non-simple layout allocates the required amount of memory to have multiple * bound C++ classes as parents. Under this layout, `nonsimple.values_and_holders` is set to a - * pointer to allocated space of the required space to hold a a sequence of value pointers and + * pointer to allocated space of the required space to hold a sequence of value pointers and * holders followed `status`, a set of bit flags (1 byte each), i.e. * [val1*][holder1][val2*][holder2]...[bb...] where each [block] is rounded up to a multiple of - * `sizeof(void *)`. `nonsimple.holder_constructed` is, for convenience, a pointer to the + * `sizeof(void *)`. `nonsimple.status` is, for convenience, a pointer to the * beginning of the [bb...] block (but not independently allocated). * * Status bits indicate whether the associated holder is constructed (&