[json-glib] reader: Fix example code for json_reader_read_member()



commit 440f735349aa30ce34957e50786a528e96335442
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Dec 27 17:14:06 2013 +0100

    reader: Fix example code for json_reader_read_member()
    
    Fix cut'n'paste error.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=721137

 json-glib/json-reader.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/json-glib/json-reader.c b/json-glib/json-reader.c
index 667ba40..cb2ecd7 100644
--- a/json-glib/json-reader.c
+++ b/json-glib/json-reader.c
@@ -604,11 +604,11 @@ json_reader_count_elements (JsonReader *reader)
  * |[
  * json_reader_read_member (reader, "author");
  * author = json_reader_get_string_value (reader);
- * json_reader_end_element (reader);
+ * json_reader_end_member (reader);
  *
- * json_reader_read_element (reader, "title");
+ * json_reader_read_member (reader, "title");
  * title = json_reader_get_string_value (reader);
- * json_reader_end_element (reader);
+ * json_reader_end_member (reader);
  * ]|
  *
  * If @reader is not currently on an object, or if the @member_name is not


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