File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 23
23
* that way:
24
24
*
25
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
29
* strbuf_setlen(sb, sb->len + SOME_OTHER_SIZE);
30
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
32
*
33
33
* Doing so is safe, though if it has to be done in many places, adding the
34
34
* missing API to the strbuf module is the way to go.
You can’t perform that action at this time.
0 commit comments