Skip to content

Commit 0bb1519

Browse files
rscharfegitster
authored andcommitted
correct FLEXPTR_* example in comment
This section is about "The FLEXPTR_* variants", so use FLEXPTR_ALLOC_STR in the example. Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8d5b332 commit 0bb1519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-compat-util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ extern FILE *fopen_for_writing(const char *path);
803803
* you can do:
804804
*
805805
* struct foo *f;
806-
* FLEX_ALLOC_STR(f, name, src);
806+
* FLEXPTR_ALLOC_STR(f, name, src);
807807
*
808808
* and "name" will point to a block of memory after the struct, which will be
809809
* freed along with the struct (but the pointer can be repointed anywhere).

0 commit comments

Comments
 (0)