Commit 0d3ccf0b28edb9daa5313e27149ca746b4a88c04

Vicent Marti 2013-04-10T16:41:05

examples: Don't print weird characters

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/examples/general.c b/examples/general.c
index a65295f..adc7ed8 100644
--- a/examples/general.c
+++ b/examples/general.c
@@ -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.