CONTRIBUTING.md: Remove whitespace

This commit is contained in:
Margen67 2021-04-16 05:53:32 -10:00 committed by Vicki Pfau
parent 2dc47e63dd
commit a7c451708f
1 changed files with 7 additions and 7 deletions

View File

@ -55,18 +55,18 @@ Enum values and `#define`s should be all caps with underscores.
Good: Good:
static int _localVariable; static int _localVariable;
struct LocalStruct { struct LocalStruct {
void (*methodName)(struct LocalStruct struct, param); void (*methodName)(struct LocalStruct struct, param);
int memberName; int memberName;
}; };
enum { enum {
ENUM_ITEM_1, ENUM_ITEM_1,
ENUM_ITEM_2 ENUM_ITEM_2
}; };
void LocalStructCreate(struct LocalStruct* struct); void LocalStructCreate(struct LocalStruct* struct);
void functionName(int argument); void functionName(int argument);
@ -124,7 +124,7 @@ Bad (missing space):
if (condition){ if (condition){
block; block;
} }
### Spacing ### Spacing
Indentation should be done using tabs and should match the level of braces. Alignment within a line should be done sparingly, but only done with spaces. Indentation should be done using tabs and should match the level of braces. Alignment within a line should be done sparingly, but only done with spaces.
@ -137,9 +137,9 @@ Good:
#ifndef FILE_NAME_H #ifndef FILE_NAME_H
#define FILE_NAME_H #define FILE_NAME_H
// Header // Header
#endif #endif
There should be no comment on the `#endif`. There should be no comment on the `#endif`.