From 603fdc915459caa6a4261d135ff8139094f64567 Mon Sep 17 00:00:00 2001 From: Steve Dougherty Date: Fri, 17 Jun 2016 10:45:47 -0400 Subject: [PATCH] doc: fix code block formatting --- doc/apiref.rst | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/apiref.rst b/doc/apiref.rst index 1af54f0..ae0feed 100644 --- a/doc/apiref.rst +++ b/doc/apiref.rst @@ -736,18 +736,18 @@ implementation. will lead to segfaults. This function is used internally to implement :func:`json_object_foreach`. Example:: - /* obj is a JSON object */ - const char *key; - json_t *value; - - void *iter = json_object_iter(obj); - while(iter) - { - key = json_object_iter_key(iter); - value = json_object_iter_value(iter); - /* use key and value ... */ - iter = json_object_iter_next(obj, iter); - } + /* obj is a JSON object */ + const char *key; + json_t *value; + + void *iter = json_object_iter(obj); + while(iter) + { + key = json_object_iter_key(iter); + value = json_object_iter_value(iter); + /* use key and value ... */ + iter = json_object_iter_next(obj, iter); + } .. versionadded:: 2.3