Skip to content

Commit 38afd2d

Browse files
committed
Merge branch 'sg/commit-slab-clarify-peek'
In-code comment update. * sg/commit-slab-clarify-peek: commit-slab: clarify slabname##_peek()'s return value
2 parents 52f2601 + 7422b2a commit 38afd2d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

commit-slab.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@
2424
* - int *indegree_peek(struct indegree *, struct commit *);
2525
*
2626
* This function is similar to indegree_at(), but it will return NULL
27-
* until a call to indegree_at() was made for the commit.
27+
* if the location to store the data associated with the given commit
28+
* has not been allocated yet.
29+
* Note that the location to store the data might have already been
30+
* allocated even if no indegree_at() call has been made for that commit
31+
* yet; in this case this function returns a pointer to a
32+
* zero-initialized location.
2833
*
2934
* - void init_indegree(struct indegree *);
3035
* void init_indegree_with_stride(struct indegree *, int);

0 commit comments

Comments
 (0)