[json-glib/json-glib-0-12] reader: Fix bug in example usage (cherry picked from commit 254e8e969968e7ed5f594238a980b20c6fabc46e



commit 942453647b168746da5d6db85e8436e75badde45
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Apr 21 02:29:53 2011 +0100

    reader: Fix bug in example usage
    (cherry picked from commit 254e8e969968e7ed5f594238a980b20c6fabc46e)
    
    Signed-off-by: Emmanuele Bassi <ebassi gnome org>

 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 bb14e19..bf29f31 100644
--- a/json-glib/json-reader.c
+++ b/json-glib/json-reader.c
@@ -56,7 +56,7 @@
  *  &ast;/
  * 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]