Fix typos
This commit is contained in:
@ -149,7 +149,7 @@ static bool init_obj_weakref(const RefcountContext *ctx, void *obj) {
|
||||
|
||||
/**
|
||||
* @struct DestructorEntry
|
||||
* Hash table entry used to hold descructor callback information.
|
||||
* Hash table entry used to hold destructor callback information.
|
||||
*/
|
||||
struct DestructorEntry {
|
||||
refcount_destructor_callback_t callback; //!< The callback itself.
|
||||
@ -299,9 +299,9 @@ static bool call_object_destructors_foreach_callback(void *key, void *entry_raw,
|
||||
}
|
||||
|
||||
/**
|
||||
* Call descructors for an object.
|
||||
* Call destructors for an object.
|
||||
* @param ctx The #RefcountContext
|
||||
* @param obj The object to call descructors for
|
||||
* @param obj The object to call destructors for
|
||||
*/
|
||||
static void call_object_destructors(const RefcountContext *ctx, void *obj) {
|
||||
ht_foreach(ENTRY->destructors, call_object_destructors_foreach_callback,
|
||||
@ -549,7 +549,7 @@ static const HTTableFunctions ROOT_COUNTS_FNS = {
|
||||
struct ContextAndRootPtr {
|
||||
RefcountContext *ctx; //!< The context.
|
||||
RefcountList **root_ptr; //!< Double pointer to the root.
|
||||
bool did_update; //!< Weather or not *root_ptr was changed.
|
||||
bool did_update; //!< Whether or not *root_ptr was changed.
|
||||
};
|
||||
|
||||
/**
|
||||
@ -758,7 +758,7 @@ void refcount_context_destroy_weakref(const RefcountContext *ctx,
|
||||
* Return weather the object referenced by a weak reference still exists.
|
||||
* @param ctx The #RefcountContext
|
||||
* @param wr The weak reference
|
||||
* @return Weather the reference is still valid
|
||||
* @return Whether the reference is still valid
|
||||
*/
|
||||
bool refcount_context_weakref_is_valid(const RefcountContext *ctx,
|
||||
RefcountWeakref *wr) {
|
||||
|
||||
Reference in New Issue
Block a user