Skip to content

Commit 90cc95e

Browse files
CONTRIBUTING: mark C code properly (#36806)
This makes the section way more readable.
1 parent af23512 commit 90cc95e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,11 @@ runtest harness).
266266
#### General Formatting Guidelines For C code contributions
267267

268268
- 4 spaces per indentation level, no tabs
269-
- space between if and ( (if (x) ...)
270-
- newline before opening { in function definitions
271-
- f(void) for 0-argument function declarations
272-
- newline between } and else instead of } else {
273-
- if one part of an if..else chain uses { } then all should
269+
- space between `if` and `(` (`if (x) ...`)
270+
- newline before opening `{` in function definitions
271+
- `f(void)` for 0-argument function declarations
272+
- newline between `}` and `else` instead of `} else {`
273+
- if one part of an `if..else` chain uses `{ }` then all should
274274
- no whitespace at the end of a line
275275

276276
### Git Recommendations For Pull Requests

0 commit comments

Comments
 (0)