From: Steffen Prohaska Date: Sun, 4 Nov 2007 08:02:21 +0000 (+0100) Subject: Fix comment in strbuf.h to use correct name strbuf_avail() X-Git-Tag: v1.5.4-rc0~264 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a1f611d5d03d7849f4d7f47f5bd39b5c44808bb5;p=git.git Fix comment in strbuf.h to use correct name strbuf_avail() Signed-off-by: Steffen Prohaska Signed-off-by: Junio C Hamano --- diff --git a/strbuf.h b/strbuf.h index 9b9e861d3..cd7f295b6 100644 --- a/strbuf.h +++ b/strbuf.h @@ -23,12 +23,12 @@ * that way: * * strbuf_grow(sb, SOME_SIZE); - * // ... here the memory areay starting at sb->buf, and of length - * // sb_avail(sb) is all yours, and you are sure that sb_avail(sb) is at - * // least SOME_SIZE + * ... Here, the memory array starting at sb->buf, and of length + * ... strbuf_avail(sb) is all yours, and you are sure that + * ... strbuf_avail(sb) is at least SOME_SIZE. * strbuf_setlen(sb, sb->len + SOME_OTHER_SIZE); * - * Of course, SOME_OTHER_SIZE must be smaller or equal to sb_avail(sb). + * Of course, SOME_OTHER_SIZE must be smaller or equal to strbuf_avail(sb). * * Doing so is safe, though if it has to be done in many places, adding the * missing API to the strbuf module is the way to go.