Skip to content

Commit bfe5cb5

Browse files
authored
Merge pull request libgit2#6837 from ehuss/stream_read_return_docs
Fix docs for git_odb_stream_read return value.
2 parents 4ce872a + ca1e3db commit bfe5cb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/git2/odb.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ GIT_EXTERN(int) git_odb_stream_finalize_write(git_oid *out, git_odb_stream *stre
382382
* @param stream the stream
383383
* @param buffer a user-allocated buffer to store the data in.
384384
* @param len the buffer's length
385-
* @return 0 if the read succeeded, error code otherwise
385+
* @return the number of bytes read if succeeded, error code otherwise
386386
*/
387387
GIT_EXTERN(int) git_odb_stream_read(git_odb_stream *stream, char *buffer, size_t len);
388388

0 commit comments

Comments
 (0)