summaryrefslogtreecommitdiff
path: root/examples/general.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/general.c')
-rw-r--r--examples/general.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/general.c b/examples/general.c
index a65295f98..adc7ed8d2 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.