Browse Source
[Docs] Fix incorrect spacing on Coding Conventions page (#7058)
pull/7084/head
Drashna Jaelre
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
7 deletions
-
docs/coding_conventions_c.md
|
|
@ -31,17 +31,17 @@ Here is an example for easy reference: |
|
|
|
```c |
|
|
|
/* Enums for foo */ |
|
|
|
enum foo_state { |
|
|
|
FOO_BAR, |
|
|
|
FOO_BAZ, |
|
|
|
FOO_BAR, |
|
|
|
FOO_BAZ, |
|
|
|
}; |
|
|
|
|
|
|
|
/* Returns a value */ |
|
|
|
int foo(void) { |
|
|
|
if (some_condition) { |
|
|
|
return FOO_BAR; |
|
|
|
} else { |
|
|
|
return -1; |
|
|
|
} |
|
|
|
if (some_condition) { |
|
|
|
return FOO_BAR; |
|
|
|
} else { |
|
|
|
return -1; |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
|