@matheusbsbs / matheus-bagliano / commits / a1f611d5d0
Fork 0

Fix comment in strbuf.h to use correct name strbuf_avail()

Signed-off-by: Steffen Prohaska <prohaska@zib.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Steffen Prohaska committed Nov 4, 2007 at 09:02 UTC a1f611d5d03d7849f4d7f47f5bd39b5c44808bb5
1 file changed +4 -4
strbuf.h
+4 -4
@@ -23,12 +23,12 @@
23 * that way:
24 *
25 * strbuf_grow(sb, SOME_SIZE);
26 - * // ... here the memory areay starting at sb->buf, and of length
27 - * // sb_avail(sb) is all yours, and you are sure that sb_avail(sb) is at
28 - * // least SOME_SIZE
26 + * ... Here, the memory array starting at sb->buf, and of length
27 + * ... strbuf_avail(sb) is all yours, and you are sure that
28 + * ... strbuf_avail(sb) is at least SOME_SIZE.
29 * strbuf_setlen(sb, sb->len + SOME_OTHER_SIZE);
30 *
31 - * Of course, SOME_OTHER_SIZE must be smaller or equal to sb_avail(sb).
31 + * Of course, SOME_OTHER_SIZE must be smaller or equal to strbuf_avail(sb).
32 *
33 * Doing so is safe, though if it has to be done in many places, adding the
34 * missing API to the strbuf module is the way to go.