Skip to contentSkip to conversation

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

PATCH In review Steffen Prohaska 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix comment in strbuf.h to use correct name strbuf_avail()

---
 strbuf.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Note, the patch is against Junio's pu.

Steffen

strbuf.h +3 -3
index 9720826..e5cdd1e 100644
@@ -24,11 +24,11 @@
  *
  *    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
+ *    // 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.
Signature · 1 line
1.5.3.4.464.ge1bc2
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Steffen Prohaska
Quoted 30 lines
---
 strbuf.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Note, the patch is against Junio's pu.

Steffen

strbuf.h +3 -3
index 9720826..e5cdd1e 100644
@@ -24,11 +24,11 @@
  *
  *    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
+ *    // 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.
Signature · 1 line
1.5.3.4.464.ge1bc2
Signature · 3 lines
·O·  Pierre Habouzit
··O                                                [email protected]
OOO                                                http://www.madism.org