[tracker: 24/25] libtracker-sparql: Make new example for_update_array a bit more aesthetic



commit 2eaa0a6def94501ed225e9a727fdf2a9e813d899
Author: Martyn Russell <martyn lanedo com>
Date:   Thu Oct 14 17:55:08 2010 +0100

    libtracker-sparql: Make new example for_update_array a bit more aesthetic

 src/libtracker-sparql/tracker-connection.vala |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-connection.vala b/src/libtracker-sparql/tracker-connection.vala
index 024714b..f1f030a 100644
--- a/src/libtracker-sparql/tracker-connection.vala
+++ b/src/libtracker-sparql/tracker-connection.vala
@@ -462,11 +462,16 @@ public abstract class Tracker.Sparql.Connection : Object {
 	 *     GError *error = NULL;
 	 *     GPtrArray *errors;
 	 *     guint i;
+	 *
 	 *     errors = tracker_sparql_connection_update_array_finish (connection, result, &error);
 	 *     g_assert_no_error (error);
+	 *
 	 *     for (i = 0; i < errors->len; i++) {
-	 *         const GError *a_error = g_ptr_array_index (errors, i);
+	 *         const GError *e = g_ptr_array_index (errors, i);
+	 *
+	 *         ...
 	 *     }
+	 *
 	 *     g_ptr_array_unref (errors);
 	 * }
 	 * </programlisting>
@@ -482,7 +487,6 @@ public abstract class Tracker.Sparql.Connection : Object {
 	 *
 	 * Since: 0.10
 	 */
-
 	public async virtual GLib.PtrArray? update_array_async (string[] sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error, IOError {
 		warning ("Interface 'update_array_async' not implemented");
 		return null;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]