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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Dec 5, 2011 at 17:29 UTC
c2857fb8b7903b2bba9217310971e5282549174d
1 file changed
-2
builtin/stripspace.c
-2
@@ -22,8 +22,6 @@ static size_t cleanup(char *line, size_t len)
22
* Remove empty lines from the beginning and end
23
* and also trailing spaces from every line.
24
*
25
- * Note that the buffer will not be NUL-terminated.
26
- *
25
* Turn multiple consecutive empty lines between paragraphs
26
* into just one empty line.
27
*