[json-glib] reader: Fix bug in example usage



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 @@
  *  &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]