Skip to content

Commit c35368b

Browse files
committed
Add missing argument to git_commit_parent_id()
1 parent f177f0f commit c35368b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/101-samples/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ const git_oid *tree_id = git_commit_tree_id(commit);
593593
~~~c
594594
unsigned int count = git_commit_parentcount(commit);
595595
for (unsigned int i=0; i<count; i++) {
596-
git_oid *nth_parent_id = git_commit_parent_id(commit);
596+
git_oid *nth_parent_id = git_commit_parent_id(commit, i);
597597
598598
git_commit *nth_parent = NULL;
599599
int error = git_commit_parent(&nth_parent, commit, i);

0 commit comments

Comments
 (0)