From 7892ecce1c220c4d2bdffa2dbe1c8afe046d3509 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Fri, 27 Jul 2012 07:28:18 +0300 Subject: [PATCH] Fix a small error in tutorial Fixes #84. --- doc/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4