From: Jeff King Date: Mon, 5 Dec 2011 22:29:15 +0000 (-0500) Subject: stripspace: fix outdated comment X-Git-Tag: v1.7.6.5~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c2857fb8b7903b2bba9217310971e5282549174d;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/stripspace.c b/builtin/stripspace.c index 4d3b93fed..1288ffcc5 100644 --- a/builtin/stripspace.c +++ b/builtin/stripspace.c @@ -22,8 +22,6 @@ static size_t cleanup(char *line, size_t len) * Remove empty lines from the beginning and end * and also trailing spaces from every line. * - * Note that the buffer will not be NUL-terminated. - * * Turn multiple consecutive empty lines between paragraphs * into just one empty line. *