diff options
| author | 2016-11-05 00:29:54 -0400 | |
|---|---|---|
| committer | 2016-11-05 00:29:54 -0400 | |
| commit | b4c53b1e59f59812a1788acaeda4ea017bb04ba3 (patch) | |
| tree | c32bd00268f89b27a14609549487d122fdcd8640 /CONTRIBUTING.md | |
| parent | Merge pull request #2142 from mailwl/acu-update (diff) | |
| download | yuzu-b4c53b1e59f59812a1788acaeda4ea017bb04ba3.tar.gz yuzu-b4c53b1e59f59812a1788acaeda4ea017bb04ba3.tar.xz yuzu-b4c53b1e59f59812a1788acaeda4ea017bb04ba3.zip | |
Update CONTRIBUTING.md
Diffstat (limited to '')
| -rw-r--r-- | CONTRIBUTING.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3d6a87651..36fa4b86a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md | |||
| @@ -52,7 +52,7 @@ namespace Example { | |||
| 52 | // Namespace contents are not indented | 52 | // Namespace contents are not indented |
| 53 | 53 | ||
| 54 | // Declare globals at the top | 54 | // Declare globals at the top |
| 55 | int g_foo = 0; | 55 | int g_foo{}; // {} can be used to initialize types as 0, false, or nullptr |
| 56 | char* g_some_pointer; // Pointer * and reference & stick to the type name | 56 | char* g_some_pointer; // Pointer * and reference & stick to the type name |
| 57 | 57 | ||
| 58 | /// A colorful enum. | 58 | /// A colorful enum. |
| @@ -73,7 +73,9 @@ struct Position { | |||
| 73 | // Use "typename" rather than "class" here | 73 | // Use "typename" rather than "class" here |
| 74 | template <typename T> | 74 | template <typename T> |
| 75 | void FooBar() { | 75 | void FooBar() { |
| 76 | int some_array[] = { | 76 | std::string some_string{ "prefer uniform initialization" }; |
| 77 | |||
| 78 | int some_array[]{ | ||
| 77 | 5, | 79 | 5, |
| 78 | 25, | 80 | 25, |
| 79 | 7, | 81 | 7, |