This commit is contained in:
2026-03-09 13:26:08 -05:00
parent 442bc8d88f
commit 2c61dbcc64

View File

@@ -37,7 +37,7 @@ I recommend skimming over these for inspiration.
- return type goes on its own line, - return type goes on its own line,
- function name() is on a line below that, and - function name() is on a line below that, and
- open bracket `{` after that. - open bracket `{` after that.
- `for`, `if`, `while`, etc. statements that only contain one line - `for`, `if`, `while`, etc. statements that only contain one line
- Use `/* comments */` for permanent comments, `// comments` for temporary ones e.g. `TODO`'s or notices - Use `/* comments */` for permanent comments, `// comments` for temporary ones e.g. `TODO`'s or notices
- **Try to make every line 100 characters wide or less.** - **Try to make every line 100 characters wide or less.**
- Start source files as `.cc` straight away, even if they're pure **C**. - Start source files as `.cc` straight away, even if they're pure **C**.