aboutsummaryrefslogtreecommitdiff
path: root/contributing.md
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 20:03:14 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 20:03:14 +0100
commit3d2428af8e8d9d49b4ade52d4806a7dae4cf1ab8 (patch)
tree30d908c427ff9b4ee53402fbf52cb15704e58623 /contributing.md
parentfde229c24dcbd1ed844880a35eabddb88279802b (diff)
merge #25 + nitpicking
Diffstat (limited to 'contributing.md')
-rw-r--r--contributing.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/contributing.md b/contributing.md
index ba8ad68..8799057 100644
--- a/contributing.md
+++ b/contributing.md
@@ -635,6 +635,23 @@ that you can click on to open them.
}
```
</td></tr></table></details>
+- <details><summary>
+ Assigning booleans should be done with the
+ <code>true</code>/<code>false</code> literals instead of
+ <code>0</code>/<code>1</code>
+ </summary><table><tr><th>Good</th><th>Bad</th></tr><tr><td>
+
+ ```cpp
+ bool foo = true;
+ bool bar = false;
+ ```
+ </td><td>
+
+ ```cpp
+ bool foo = 1;
+ bool bar = 0;
+ ```
+ </td></tr></table></details>
## CMakeLists-specific