docs: various small fixes

For the GPtrArray example, several variables declared on the same line
is harder to read and to work with (to move, remove or comment a single
variable declaration).
This commit is contained in:
Sébastien Wilmet
2014-09-09 21:20:34 +02:00
parent fdc5b8f744
commit 25990eb2b6
2 changed files with 5 additions and 3 deletions

View File

@@ -816,9 +816,11 @@ g_array_maybe_expand (GRealArray *array,
* An example using a #GPtrArray:
* |[<!-- language="C" -->
* GPtrArray *array;
* gchar *string1 = "one", *string2 = "two", *string3 = "three";
* gchar *string1 = "one";
* gchar *string2 = "two";
* gchar *string3 = "three";
*
* gparray = g_ptr_array_new ();
* array = g_ptr_array_new ();
* g_ptr_array_add (array, (gpointer) string1);
* g_ptr_array_add (array, (gpointer) string2);
* g_ptr_array_add (array, (gpointer) string3);