From d3d425271f742511b7a74feb5085954d266bb67d Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Sat, 2 Aug 2025 22:22:04 +0200 Subject: [PATCH] gbitlock: Fix documentation issues - Adds a missing colon for introspection - Removes extra brackets - Fixes variable name to match header definition - Simplifies grammar --- glib/gbitlock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/glib/gbitlock.c b/glib/gbitlock.c index 5c2ebab48..8bcfa7d4e 100644 --- a/glib/gbitlock.c +++ b/glib/gbitlock.c @@ -312,7 +312,7 @@ g_bit_lock (volatile gint *address, /** * g_bit_trylock: - * @address: (type gpointer) a pointer to an integer + * @address: (type gpointer): a pointer to an integer * @lock_bit: a bit value between 0 and 31 * * Sets the indicated @lock_bit in @address, returning %TRUE if @@ -402,16 +402,16 @@ g_bit_unlock (volatile gint *address, * g_bit_unlock_and_set: * @address: (type gpointer): a pointer to an integer * @lock_bit: a bit value between 0 and 31 - * @val: the new value to set + * @new_val: the new value to set * @preserve_mask: mask for bits from @address to preserve * - * This is like [func@GLib.bit_unlock]() but also atomically sets @address to + * This is like [func@GLib.bit_unlock] but also atomically sets @address to * @val. * * If @preserve_mask is not zero, then the @preserve_mask bits will be * preserved in @address and are not set to @val. * - * Note that the @lock_bit bit will be always unset regardless of + * Note that the @lock_bit bit will always be unset regardless of * @val, @preserve_mask and the currently set value in @address. * * Since: 2.86