diff --git a/gio/gdbusobjectmanagerclient.c b/gio/gdbusobjectmanagerclient.c index e21a64a52..b01bbc019 100644 --- a/gio/gdbusobjectmanagerclient.c +++ b/gio/gdbusobjectmanagerclient.c @@ -1685,7 +1685,7 @@ remove_interfaces (GDBusObjectManagerClient *manager, num_interfaces_to_remove = g_strv_length ((gchar **) interface_names); - /* see if we are going to completety remove the object */ + /* see if we are going to completely remove the object */ g_object_ref (manager); if (num_interfaces_to_remove == num_interfaces) { diff --git a/glib/gconvert.c b/glib/gconvert.c index c6a244148..7ad8ca018 100644 --- a/glib/gconvert.c +++ b/glib/gconvert.c @@ -809,7 +809,7 @@ typedef enum /* * Convert from @string in the encoding identified by @from_codeset, - * returning a string in the encoding identifed by @to_codeset. + * returning a string in the encoding identified by @to_codeset. * @len can be negative if @string is nul-terminated, or a non-negative * value in bytes. Flags defined in #ConvertCheckFlags can be set in @flags * to check the input, the output, or both, for embedded nul bytes. diff --git a/glib/gdataset.c b/glib/gdataset.c index a4d7af487..b47240613 100644 --- a/glib/gdataset.c +++ b/glib/gdataset.c @@ -169,7 +169,7 @@ g_datalist_unlock_and_set (GData **datalist, gpointer ptr) static gsize datalist_alloc_size (guint32 alloc) { - /* GDataElt also contains pointer. It thus is suitable aligned for pointers, + /* GDataElt also contains pointer. It thus is suitably aligned for pointers, * and we can just append the pointer for the index at the end. */ return G_STRUCT_OFFSET (GData, data) + (((gsize) alloc) * sizeof (GDataElt)) + @@ -411,7 +411,7 @@ datalist_shrink (GData **data, GData **d_to_free) if (v != alloc_by_4) { /* d->alloc is a power of two (unless it's G_MAXUINT32). Usually, we - * remove one element at a time, then we will just reach reach a quarter + * remove one element at a time, then we will just reach a quarter * of that. * * However, with g_datalist_id_remove_multiple(), len can be smaller diff --git a/glib/gfileutils.c b/glib/gfileutils.c index 0855ebea1..8b70ddd7d 100644 --- a/glib/gfileutils.c +++ b/glib/gfileutils.c @@ -2026,7 +2026,7 @@ g_build_path_va (const gchar *separator, /** * g_build_pathv: - * @separator: a string used to separator the elements of the path. + * @separator: a string used to separate the elements of the path. * @args: (array zero-terminated=1) (element-type filename): %NULL-terminated * array of strings containing the path elements. * @@ -2053,7 +2053,7 @@ g_build_pathv (const gchar *separator, /** * g_build_path: - * @separator: (type filename): a string used to separator the elements of the path. + * @separator: (type filename): a string used to separate the elements of the path. * @first_element: (type filename): the first element in the path * @...: remaining elements in path, terminated by %NULL * diff --git a/glib/ghash.c b/glib/ghash.c index e922e1a88..33086e854 100644 --- a/glib/ghash.c +++ b/glib/ghash.c @@ -1909,7 +1909,7 @@ g_hash_table_steal_all (GHashTable *hash_table) * destroy function. * * Returns: (transfer container): a #GPtrArray containing each key of - * the table. Unref with with g_ptr_array_unref() when done. + * the table. Unref with g_ptr_array_unref() when done. * * Since: 2.76 */ @@ -1946,7 +1946,7 @@ g_hash_table_steal_all_keys (GHashTable *hash_table) * destroy function. * * Returns: (transfer container): a #GPtrArray containing each value of - * the table. Unref with with g_ptr_array_unref() when done. + * the table. Unref with g_ptr_array_unref() when done. * * Since: 2.76 */ @@ -2318,7 +2318,7 @@ g_hash_table_get_keys_as_array (GHashTable *hash_table, * You should always unref the returned array with g_ptr_array_unref(). * * Returns: (transfer container): a #GPtrArray containing each key from - * the table. Unref with with g_ptr_array_unref() when done. + * the table. Unref with g_ptr_array_unref() when done. * * Since: 2.76 **/ @@ -2393,7 +2393,7 @@ g_hash_table_get_values (GHashTable *hash_table) * You should always unref the returned array with g_ptr_array_unref(). * * Returns: (transfer container): a #GPtrArray containing each value from - * the table. Unref with with g_ptr_array_unref() when done. + * the table. Unref with g_ptr_array_unref() when done. * * Since: 2.76 **/ diff --git a/glib/gpathbuf.c b/glib/gpathbuf.c index e51f3f1bd..de4f7c52b 100644 --- a/glib/gpathbuf.c +++ b/glib/gpathbuf.c @@ -560,7 +560,7 @@ g_path_buf_to_path (GPathBuf *buf) * Compares two path buffers for equality and returns `TRUE` * if they are equal. * - * The path inside the paths buffers are not going to be normalized, + * The paths inside the path buffers are not going to be normalized, * so `X/Y/Z/A/..`, `X/./Y/Z` and `X/Y/Z` are not going to be considered * equal. * diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index 9b76049a4..7ef9ff84e 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -1022,7 +1022,7 @@ g_parse_long_long (const gchar *nptr, guint base, gboolean *negative) { - /* this code is based on on the strtol(3) code from GNU libc released under + /* this code is based on the strtol(3) code from GNU libc released under * the GNU Lesser General Public License. * * Copyright (C) 1991,92,94,95,96,97,98,99,2000,01,02 diff --git a/glib/gtestutils.c b/glib/gtestutils.c index e9ca56dbd..99d6e4c4d 100644 --- a/glib/gtestutils.c +++ b/glib/gtestutils.c @@ -2874,7 +2874,7 @@ g_test_add_data_func (const char *testpath, * * Creates a new test case. * - * In constract to [func@GLib.test_add_data_func], this function + * In contrast to [func@GLib.test_add_data_func], this function * is freeing @test_data after the test run is complete. * * Since: 2.34 diff --git a/glib/tests/mem-overflow.c b/glib/tests/mem-overflow.c index b8b65c17a..783a80ba4 100644 --- a/glib/tests/mem-overflow.c +++ b/glib/tests/mem-overflow.c @@ -1,4 +1,4 @@ -/* Unit tests for g +/* Unit tests for gmem * Copyright (C) 2010 Red Hat, Inc. * * SPDX-License-Identifier: LicenseRef-old-glib-tests diff --git a/glib/tests/messages-low-memory.c b/glib/tests/messages-low-memory.c index 479143723..8274f3d8b 100644 --- a/glib/tests/messages-low-memory.c +++ b/glib/tests/messages-low-memory.c @@ -78,7 +78,7 @@ main (int argc, #ifndef __linux__ if (!our_malloc_called) { - /* For some reasons this doesn't work darwin systems, so ignore the result + /* For some reasons this doesn't work on darwin systems, so ignore the result * for non-linux, while we want to ensure the test is valid at least there */ g_message ("Our malloc implementation has not been called, the test "