From ca1e3dbb06bcd99a030638f5896519873a2fd912 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 22 Jun 2024 12:59:37 -0700 Subject: [PATCH] Fix docs for git_odb_stream_read return value. --- include/git2/odb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/git2/odb.h b/include/git2/odb.h index c7d6a894c..60e293a13 100644 --- a/include/git2/odb.h +++ b/include/git2/odb.h @@ -382,7 +382,7 @@ GIT_EXTERN(int) git_odb_stream_finalize_write(git_oid *out, git_odb_stream *stre * @param stream the stream * @param buffer a user-allocated buffer to store the data in. * @param len the buffer's length - * @return 0 if the read succeeded, error code otherwise + * @return the number of bytes read if succeeded, error code otherwise */ GIT_EXTERN(int) git_odb_stream_read(git_odb_stream *stream, char *buffer, size_t len);