From: René Scharfe Date: Sat, 13 Aug 2016 09:01:21 +0000 (+0200) Subject: correct FLEXPTR_* example in comment X-Git-Tag: v2.9.4~6^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/0bb1519f05aed047a969b9fe0bfa80e6ef804c7f?hp=--cc 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 Signed-off-by: Junio C Hamano --- 0bb1519f05aed047a969b9fe0bfa80e6ef804c7f diff --git a/git-compat-util.h b/git-compat-util.h index 1459f9b87e..17918d028a 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -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).