Doc fixes.

Mon Sep 10 11:42:58 2001  Owen Taylor  <otaylor@redhat.com>

        * glib/gutf8.c glib/gstring.c glib/gfileutils.c glib/gmain.c:
        Doc fixes.
This commit is contained in:
Owen Taylor
2001-09-10 15:50:26 +00:00
committed by Owen Taylor
parent a5c41a993f
commit 16fc3b22c0
12 changed files with 62 additions and 20 deletions

View File

@@ -370,7 +370,7 @@ g_string_truncate (GString *fstring,
/**
* g_string_set_size:
* @fstring: a #GString
* @string: a #GString
* @len: the new length
*
* Sets the length of a #GString. If the length is less than
@@ -382,20 +382,20 @@ g_string_truncate (GString *fstring,
* Return value: @fstring
**/
GString*
g_string_set_size (GString *fstring,
g_string_set_size (GString *string,
gsize len)
{
GRealString *string = (GRealString *) fstring;
GRealString *rstring = (GRealString *) string;
g_return_val_if_fail (string != NULL, NULL);
if (len >= string->allocated_len)
g_string_maybe_expand (string, len - fstring->len);
if (len >= rstring->allocated_len)
g_string_maybe_expand (rstring, len - string->len);
string->len = len;
string->str[len] = 0;
rstring->len = len;
rstring->str[len] = 0;
return fstring;
return string;
}
GString*