diff options
| author | veclavtalica <[email protected]> | 2022-06-23 11:03:16 +0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-23 08:03:16 +0200 |
| commit | b1fb469e0dcb5c29d115bf9e7b716a79f28c26a3 (patch) | |
| tree | 8c2ca8dcb9b02357cdceb52150263f2245f34140 | |
| parent | d7a0b4600694a821e8ebb8c47950cb07b445bece (diff) | |
| download | raylib-b1fb469e0dcb5c29d115bf9e7b716a79f28c26a3.tar.gz raylib-b1fb469e0dcb5c29d115bf9e7b716a79f28c26a3.zip | |
fix: small things in CONVENTIONS.md (#2536)
| -rw-r--r-- | CONVENTIONS.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/CONVENTIONS.md b/CONVENTIONS.md index e47a1e84..37db230e 100644 --- a/CONVENTIONS.md +++ b/CONVENTIONS.md @@ -19,7 +19,7 @@ Operators | value1 - value2 | `int res = value - 5;` Enum | TitleCase | `enum TextureFormat` Enum members | ALL_CAPS | `PIXELFORMAT_UNCOMPRESSED_R8G8B8` Struct | TitleCase | `struct Texture2D`, `struct Material` -Struct members |lowerCase | `texture.width`, `color.r` +Struct members | lowerCase | `texture.width`, `color.r` Functions | TitleCase | `InitWindow()`, `LoadImageFromMemory()` Functions params | lowerCase | `width`, `height` Ternary Operator | (condition)? result1 : result2 | `printf("Value is 0: %s", (value == 0)? "yes" : "no");` @@ -52,7 +52,7 @@ switch (value) ``` - All conditions checks are **always between parenthesis** but not boolean values: ```c -if ((value > 1) && (value < 50) && valueActive)) +if ((value > 1) && (value < 50) && valueActive) { } @@ -92,4 +92,3 @@ resources/characters/enemy_slime.png resources/common/font_arial.ttf resources/common/gui.png ``` - |
