Skip to content

Commit c2857fb

Browse files
peffgitster
authored andcommitted
stripspace: fix outdated comment
The comment on top of stripspace() claims that the buffer will no longer be NUL-terminated. However, this has not been the case at least since the move to using strbuf in 2007. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 332de7a commit c2857fb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

builtin/stripspace.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ static size_t cleanup(char *line, size_t len)
2222
* Remove empty lines from the beginning and end
2323
* and also trailing spaces from every line.
2424
*
25-
* Note that the buffer will not be NUL-terminated.
26-
*
2725
* Turn multiple consecutive empty lines between paragraphs
2826
* into just one empty line.
2927
*

0 commit comments

Comments
 (0)