diff options
author | Moonchild <moonchild@palemoon.org> | 2020-02-06 14:50:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 14:50:58 +0100 |
commit | 04c770c8c84b9251b36d3c58c847b63e9b4fa08d (patch) | |
tree | dc961e27ca470ea15dbaa6d466a19dcf719f60ba | |
parent | bf914e99759c9d354c6581744dea04c7f6a2cda4 (diff) | |
download | UXP-04c770c8c84b9251b36d3c58c847b63e9b4fa08d.tar UXP-04c770c8c84b9251b36d3c58c847b63e9b4fa08d.tar.gz UXP-04c770c8c84b9251b36d3c58c847b63e9b4fa08d.tar.lz UXP-04c770c8c84b9251b36d3c58c847b63e9b4fa08d.tar.xz UXP-04c770c8c84b9251b36d3c58c847b63e9b4fa08d.zip |
Update UXP Coding Style.md
Be more explicit about paranthesis spacing
-rw-r--r-- | docs/UXP Coding Style.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/UXP Coding Style.md b/docs/UXP Coding Style.md index 1a9568c54..75cbc8051 100644 --- a/docs/UXP Coding Style.md +++ b/docs/UXP Coding Style.md @@ -11,7 +11,7 @@ Our own managed and maintained code should adhere to this guide where possible o ## General formatting rules The following formatting rules apply to all code: - Always use spaces for indentation, never use tabs! -- Put a space between a keyword and parenthesis, e.g. `if (`. +- Put a space between a keyword and parenthesis, e.g. `if (`. Do _not_ put a space between a function/type-assignment name and its parenthesis, e.g. `function(somevar)` or `int32_t(somevar)`. - Put a space between variables and operators, e.g. `a == b`. - Put a space after a comma or semicolon in variable lists, e.g. `function(a, b, c)` or `for (i = 1; i < 10; i++)`. - Indentation of scopes is 2 spaces. |