[glib] docs: various small fixes
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] docs: various small fixes
- Date: Sat, 13 Sep 2014 15:06:28 +0000 (UTC)
commit 25990eb2b6da94e1d03631eab8a952ef84cb9986
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Sep 9 21:20:34 2014 +0200
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).
gio/gfileinfo.c | 2 +-
glib/garray.c | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c
index f2ffe64..0cbf988 100644
--- a/gio/gfileinfo.c
+++ b/gio/gfileinfo.c
@@ -28,7 +28,7 @@
* implements methods for getting information that all files should
* contain, and allows for manipulation of extended attributes.
*
- * See [GFileAttribute][gio-GFileAttribute for more information on how
+ * See [GFileAttribute][gio-GFileAttribute] for more information on how
* GIO handles file attributes.
*
* To obtain a #GFileInfo for a #GFile, use g_file_query_info() (or its
diff --git a/glib/garray.c b/glib/garray.c
index f81cf0c..14e046f 100644
--- a/glib/garray.c
+++ b/glib/garray.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]