Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Fix comment in strbuf.h to use correct name strbuf_avail()
author
Steffen Prohaska
<prohaska@zib.de>
Sun, 4 Nov 2007 08:02:21 +0000
(09:02 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 6 Nov 2007 05:09:39 +0000
(21:09 -0800)
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
strbuf.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
9b3beb5
)
diff --git
a/strbuf.h
b/strbuf.h
index 9b9e861d3d5e24477459eec1ab4007cfb35f52b9..cd7f295b65237aaa1f4e4031482af43cbe9d9115 100644
(file)
--- a/
strbuf.h
+++ b/
strbuf.h
@@
-23,12
+23,12
@@
* that way:
*
* strbuf_grow(sb, SOME_SIZE);
* that way:
*
* strbuf_grow(sb, SOME_SIZE);
- *
// ... here the memory are
ay 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 arr
ay starting at sb->buf, and of length
+ *
... strbuf_avail(sb) is all yours, and you are sure th
at
+ *
... strbuf_avail(sb) is at least SOME_SIZE.
* strbuf_setlen(sb, sb->len + SOME_OTHER_SIZE);
*
* strbuf_setlen(sb, sb->len + SOME_OTHER_SIZE);
*
- * Of course, SOME_OTHER_SIZE must be smaller or equal to s
b
_avail(sb).
+ * Of course, SOME_OTHER_SIZE must be smaller or equal to s
trbuf
_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.
*
* 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.