Skip to content

Commit 0d0150d

Browse files
author
Edward Thomson
authored
Merge pull request libgit2#5910 from arxanas/patch-1
2 parents 6efcfdb + 1bdd937 commit 0d0150d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/git2/index.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ GIT_EXTERN(int) git_index_update_all(
702702
* @param at_pos the address to which the position of the index entry is written (optional)
703703
* @param index an existing index object
704704
* @param path path to search
705-
* @return a zero-based position in the index if found; GIT_ENOTFOUND otherwise
705+
* @return 0 or an error code
706706
*/
707707
GIT_EXTERN(int) git_index_find(size_t *at_pos, git_index *index, const char *path);
708708

@@ -713,7 +713,7 @@ GIT_EXTERN(int) git_index_find(size_t *at_pos, git_index *index, const char *pat
713713
* @param at_pos the address to which the position of the index entry is written (optional)
714714
* @param index an existing index object
715715
* @param prefix the prefix to search for
716-
* @return 0 with valid value in at_pos; an error code otherwise
716+
* @return 0 or an error code
717717
*/
718718
GIT_EXTERN(int) git_index_find_prefix(size_t *at_pos, git_index *index, const char *prefix);
719719

0 commit comments

Comments
 (0)