projects
/
profile
/
ivi
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f62b1f5
)
Fix a small error in tutorial
author
Petri Lehtinen
<petri@digip.org>
Fri, 27 Jul 2012 04:28:18 +0000
(07:28 +0300)
committer
Petri Lehtinen
<petri@digip.org>
Fri, 27 Jul 2012 04:28:18 +0000
(07:28 +0300)
Fixes #84.
doc/tutorial.rst
patch
|
blob
|
history
diff --git
a/doc/tutorial.rst
b/doc/tutorial.rst
index
aa31165
..
79bd3b5
100644
(file)
--- 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);