Skip to content

Commit 67dd314

Browse files
authored
Merge pull request libgit2#3966 from vivaladav/documentation-fixes
patch: minor documentation fix.
2 parents dcd759b + 6d8ecf0 commit 67dd314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/git2/patch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ GIT_EXTERN(int) git_patch_get_hunk(
191191
*
192192
* @param patch The git_patch object
193193
* @param hunk_idx Index of the hunk
194-
* @return Number of lines in hunk or -1 if invalid hunk index
194+
* @return Number of lines in hunk or GIT_ENOTFOUND if invalid hunk index
195195
*/
196196
GIT_EXTERN(int) git_patch_num_lines_in_hunk(
197197
const git_patch *patch,

0 commit comments

Comments
 (0)