aboutsummaryrefslogtreecommitdiff
path: root/docs/styleguide-cpp.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/styleguide-cpp.md')
-rw-r--r--docs/styleguide-cpp.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/styleguide-cpp.md b/docs/styleguide-cpp.md
index 69471f5..6440314 100644
--- a/docs/styleguide-cpp.md
+++ b/docs/styleguide-cpp.md
@@ -1,4 +1,4 @@
-# OpenVic2 C++ Style Guidelines
+# OpenVic2 C++ Style Guidelines
## Table of Contents
1. [Why Style?](styleguide-cpp.md#1-why-style)
@@ -169,7 +169,7 @@ Source code files should adhere to the following:
longArgumentNameOne, longArgumentNameTwo, longArgumentNameThree,
longArgumentNameFour, longArgumentNameFive, longArgumentNameSix,
longArgumentNameSeven, longArgumentNameEight);
-
+
//Incorrect
callingAFunctionWithAVeryLongNameAndManyArguments(longArgumentNameOne, longArgumentNameTwo, longArgumentNameThree, longArgumentNameFour, longArgumentNameFive, longArgumentNameSix, longArgumentNameSeven, longArgumentNameEight);
```
@@ -255,7 +255,7 @@ Source code files should adhere to the following:
- For constant values that are computable at compile-time, use `constexpr` instead of the `const` keyword
```c++
//Correct
- constexpr size_t UNIQUE_RGB_COLOURS = 256 * 256 * 256;
+ constexpr size_t UNIQUE_RGB_COLOURS = 256 * 256 * 256;
//Incorrect
const size_t UNIQUE_RGB_COLOURS = 256 * 256 * 256;