Skip to content

Commit

Permalink
Merge #8602: [trivial][doc] Mention ++i as preferred over i++ in dev …
Browse files Browse the repository at this point in the history
…notes

ab53207 [trivial][doc] Mention ++i as preferred to i++ in dev notes (fanquake)
  • Loading branch information
laanwj committed Aug 26, 2016
2 parents fd37aca + ab53207 commit bb56676
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/developer-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ gradually.
- No indentation for public/protected/private or for namespaces.
- No extra spaces inside parenthesis; don't do ( this )
- No space after function names; one space after if, for and while.
- `++i` is preferred over `i++`.

Block style example:
```c++
Expand All @@ -24,7 +25,7 @@ class Class
bool Function(char* psz, int n)
{
// Comment summarising what this section of code does
for (int i = 0; i < n; i++) {
for (int i = 0; i < n; ++i) {
// When something fails, return early
if (!Something())
return false;
Expand Down Expand Up @@ -231,9 +232,9 @@ General Bitcoin Core
- *Rationale*: Makes sure that they pass thorough testing, and that the tester will keep passing
on the master branch. Otherwise all new pull requests will start failing the tests, resulting in
confusion and mayhem

- *Explanation*: If the test suite is to be updated for a change, this has to
be done first
be done first

Wallet
-------
Expand Down

0 comments on commit bb56676

Please sign in to comment.