Skip to content

Commit bb56676

Browse files
committed
Merge #8602: [trivial][doc] Mention ++i as preferred over i++ in dev notes
ab53207 [trivial][doc] Mention ++i as preferred to i++ in dev notes (fanquake)
2 parents fd37aca + ab53207 commit bb56676

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/developer-notes.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ gradually.
1414
- No indentation for public/protected/private or for namespaces.
1515
- No extra spaces inside parenthesis; don't do ( this )
1616
- No space after function names; one space after if, for and while.
17+
- `++i` is preferred over `i++`.
1718

1819
Block style example:
1920
```c++
@@ -24,7 +25,7 @@ class Class
2425
bool Function(char* psz, int n)
2526
{
2627
// Comment summarising what this section of code does
27-
for (int i = 0; i < n; i++) {
28+
for (int i = 0; i < n; ++i) {
2829
// When something fails, return early
2930
if (!Something())
3031
return false;
@@ -231,9 +232,9 @@ General Bitcoin Core
231232
- *Rationale*: Makes sure that they pass thorough testing, and that the tester will keep passing
232233
on the master branch. Otherwise all new pull requests will start failing the tests, resulting in
233234
confusion and mayhem
234-
235+
235236
- *Explanation*: If the test suite is to be updated for a change, this has to
236-
be done first
237+
be done first
237238

238239
Wallet
239240
-------

0 commit comments

Comments
 (0)