[json-glib] reader: Fix bug in example usage
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib] reader: Fix bug in example usage
- Date: Thu, 21 Apr 2011 01:30:27 +0000 (UTC)
commit 254e8e969968e7ed5f594238a980b20c6fabc46e
Author: Bastien Nocera <hadess hadess net>
Date: Thu Apr 21 02:29:53 2011 +0100
reader: Fix bug in example usage
json-glib/json-reader.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/json-glib/json-reader.c b/json-glib/json-reader.c
index 00fe55e..4aaadbe 100644
--- a/json-glib/json-reader.c
+++ b/json-glib/json-reader.c
@@ -56,7 +56,7 @@
* */
* if (!json_reader_read_element (reader, 6))
* {
- * const GError *error = json_reader_get_error (error);
+ * const GError *error = json_reader_get_error (reader);
* g_print ("Unable to read the element: %s", error->message);
* }
* ]|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]