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 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.
You can’t perform that action at this time.
0 commit comments