Skip to content

Commit 6d8ecf0

Browse files
committed
patch: minor documentation fix.
Fix @return description of git_patch_num_lines_in_hunk.
1 parent dcd759b commit 6d8ecf0

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)