Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
[trivial][doc] Mention ++i as preferred to i++ in dev notes
Browse files Browse the repository at this point in the history
  • Loading branch information
fanquake committed Aug 26, 2016
1 parent 12892db commit ab53207
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 ab53207

Please sign in to comment.