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>
René Scharfe committed
Aug 13, 2016 at 11:01 UTC
0bb1519f05aed047a969b9fe0bfa80e6ef804c7f
1 file changed
+1
-1
git-compat-util.h
+1
-1
@@ -803,7 +803,7 @@ extern FILE *fopen_for_writing(const char *path);
803
* you can do:
804
*
805
* struct foo *f;
806
- * FLEX_ALLOC_STR(f, name, src);
806
+ * FLEXPTR_ALLOC_STR(f, name, src);
807
*
808
* and "name" will point to a block of memory after the struct, which will be
809
* freed along with the struct (but the pointer can be repointed anywhere).