summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2016-08-13 11:01:21 +0200
committerJunio C Hamano <gitster@pobox.com>2016-08-13 19:44:03 -0700
commit0bb1519f05aed047a969b9fe0bfa80e6ef804c7f (patch)
treebc5e5d86e2c2eebc6262efa8bda934374e0c94db
parent8d5b3325e72444d365ded113487d2345c365f6d3 (diff)
downloadgit-0bb1519f05aed047a969b9fe0bfa80e6ef804c7f.tar.gz
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>
-rw-r--r--git-compat-util.h2
1 files changed, 1 insertions, 1 deletions
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).