Update CONTRIBUTING.md
small update for coding style
This commit is contained in:
@@ -23,6 +23,11 @@ if (a == b) {
|
||||
}
|
||||
```
|
||||
|
||||
```cpp
|
||||
if (a == b) doStuff(a);
|
||||
```
|
||||
|
||||
less readable, but acceptable in some cases:
|
||||
```cpp
|
||||
if (a == b)
|
||||
{
|
||||
@@ -30,9 +35,6 @@ if (a == b)
|
||||
}
|
||||
```
|
||||
|
||||
```cpp
|
||||
if (a == b) doStuff(a);
|
||||
```
|
||||
|
||||
There should always be a space between a keyword and its condition and between the condition and brace.
|
||||
Within the condition, no space should be between the paranthesis and variables.
|
||||
|
||||
Reference in New Issue
Block a user