Commit 0d3ccf0b by Vicent Marti

examples: Don't print weird characters

parent e9b7ff60
......@@ -76,8 +76,7 @@ int main (int argc, char** argv)
git_oid_fromstr(&oid, hex);
// Once we've converted the string into the oid value, we can get the raw
// value of the SHA.
printf("Raw 20 bytes: [%.20s]\n", (&oid)->id);
// value of the SHA by accessing `oid.id`
// Next we will convert the 20 byte raw SHA1 value to a human readable 40
// char hex value.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment