Skip to content

Commit 6cda597

Browse files
pks-tgitster
authored andcommitted
Documentation: consistently use spaces inside initializers
Our coding guide is inconsistent with how it uses spaces inside of initializers (`struct foo bar = { something }`). While we mostly carry the space between open and closing braces and the initialized members, in one case we don't. Fix this one instance such that we consistently carry the space. This is also consistent with how clang-format formats such initializers. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 10f0723 commit 6cda597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/CodingGuidelines

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ For C programs:
244244
. since around 2007 with 2b6854c863a, we have been using
245245
initializer elements which are not computable at load time. E.g.:
246246

247-
const char *args[] = {"constant", variable, NULL};
247+
const char *args[] = { "constant", variable, NULL };
248248

249249
. since early 2012 with e1327023ea, we have been using an enum
250250
definition whose last element is followed by a comma. This, like

0 commit comments

Comments
 (0)