docs: Fix typos in comments

This commit is contained in:
Tobias Stoeckmann
2025-09-03 21:33:53 +02:00
parent 19dce43557
commit 3d21160b85
10 changed files with 15 additions and 15 deletions

View File

@@ -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)
{

View File

@@ -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.

View File

@@ -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

View File

@@ -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
*

View File

@@ -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
**/

View File

@@ -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.
*

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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 "