diff options
author | Steve Dougherty <steve@asksteved.com> | 2016-06-17 10:45:47 -0400 |
---|---|---|
committer | Steve Dougherty <steve@asksteved.com> | 2016-06-17 10:45:47 -0400 |
commit | 603fdc915459caa6a4261d135ff8139094f64567 (patch) | |
tree | 677fd749f30b6759e25c19815d5144fceb20015e /doc | |
parent | a8c834c88283e9a4d2cfe1f381b36c8c2286db5f (diff) | |
download | jansson-603fdc915459caa6a4261d135ff8139094f64567.zip jansson-603fdc915459caa6a4261d135ff8139094f64567.tar.gz jansson-603fdc915459caa6a4261d135ff8139094f64567.tar.bz2 |
doc: fix code block formatting
Diffstat (limited to 'doc')
-rw-r--r-- | doc/apiref.rst | 24 |
1 files 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 |