OSDN Git Service

correct FLEXPTR_* example in comment
authorRené Scharfe <l.s.r@web.de>
Sat, 13 Aug 2016 09:01:21 +0000 (11:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Aug 2016 02:44:03 +0000 (19:44 -0700)
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>
git-compat-util.h

index 1459f9b..17918d0 100644 (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).