Skip to content

Commit 088c9a8

Browse files
peffgitster
authored andcommitted
strbuf.h: format asciidoc code blocks as 4-space indent
This is much easier to read when the whole thing is stuffed inside a comment block. And there is precedent for this convention in markdown (and just in general ascii text). Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent aa07cac commit 088c9a8

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

strbuf.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@
3333
* NOTE: It is OK to "play" with the buffer directly if you work it this
3434
* way:
3535
*
36-
* ----
37-
* strbuf_grow(sb, SOME_SIZE); <1>
38-
* strbuf_setlen(sb, sb->len + SOME_OTHER_SIZE);
39-
* ----
36+
* strbuf_grow(sb, SOME_SIZE); <1>
37+
* strbuf_setlen(sb, sb->len + SOME_OTHER_SIZE);
38+
*
4039
* <1> Here, the memory array starting at `sb->buf`, and of length
4140
* `strbuf_avail(sb)` is all yours, and you can be sure that
4241
* `strbuf_avail(sb)` is at least `SOME_SIZE`.
@@ -261,9 +260,7 @@ extern void strbuf_add(struct strbuf *, const void *, size_t);
261260
* NOTE: This function will *always* be implemented as an inline or a macro
262261
* using strlen, meaning that this is efficient to write things like:
263262
*
264-
* ----
265-
* strbuf_addstr(sb, "immediate string");
266-
* ----
263+
* strbuf_addstr(sb, "immediate string");
267264
*
268265
*/
269266
static inline void strbuf_addstr(struct strbuf *sb, const char *s)

0 commit comments

Comments
 (0)