diff options
author | Petri Lehtinen <petri@digip.org> | 2012-07-27 07:28:18 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2012-07-27 07:28:18 +0300 |
commit | 7892ecce1c220c4d2bdffa2dbe1c8afe046d3509 (patch) | |
tree | a33f51fb4d88383a6e877a280591708a46d832b0 /doc/tutorial.rst | |
parent | f62b1f5d696a196a4fe97b52da7cc9777e648ab0 (diff) | |
download | jansson-7892ecce1c220c4d2bdffa2dbe1c8afe046d3509.zip jansson-7892ecce1c220c4d2bdffa2dbe1c8afe046d3509.tar.gz jansson-7892ecce1c220c4d2bdffa2dbe1c8afe046d3509.tar.bz2 |
Fix a small error in tutorial
Fixes #84.
Diffstat (limited to 'doc/tutorial.rst')
-rw-r--r-- | doc/tutorial.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial.rst b/doc/tutorial.rst index aa31165..79bd3b5 100644 --- a/doc/tutorial.rst +++ b/doc/tutorial.rst @@ -205,7 +205,7 @@ Next we'll extract the commit ID (a hexadecimal SHA-1 sum), intermediate commit info object, and the commit message from that object. We also do proper type checks:: - sha = json_object_get(commit, "sha"); + sha = json_object_get(data, "sha"); if(!json_is_string(sha)) { fprintf(stderr, "error: commit %d: sha is not a string\n", i + 1); |