1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-05 14:26:31 +02:00

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 <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
René Scharfe 2016-08-13 11:01:21 +02:00 committed by Junio C Hamano
parent 8d5b3325e7
commit 0bb1519f05

View File

@ -803,7 +803,7 @@ extern FILE *fopen_for_writing(const char *path);
* you can do:
*
* struct foo *f;
* FLEX_ALLOC_STR(f, name, src);
* FLEXPTR_ALLOC_STR(f, name, src);
*
* and "name" will point to a block of memory after the struct, which will be
* freed along with the struct (but the pointer can be repointed anywhere).