Skip to content

Commit a1f611d

Browse files
sprohaskagitster
authored andcommitted
Fix comment in strbuf.h to use correct name strbuf_avail()
Signed-off-by: Steffen Prohaska <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9b3beb5 commit a1f611d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

strbuf.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
* that way:
2424
*
2525
* 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.
2929
* strbuf_setlen(sb, sb->len + SOME_OTHER_SIZE);
3030
*
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).
3232
*
3333
* Doing so is safe, though if it has to be done in many places, adding the
3434
* missing API to the strbuf module is the way to go.

0 commit comments

Comments
 (0)