Skip to content

Commit c06c6b2

Browse files
committed
Merge pull request #584 from d3faultdotxbe/master
Fix tiny typo in CP.2
2 parents c495084 + 8382c21 commit c06c6b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CppCoreGuidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10229,7 +10229,7 @@ production software at this very moment. One very simple example:
1022910229

1023010230
int get_id() {
1023110231
static int id = 1;
10232-
return i++;
10232+
return id++;
1023310233
}
1023410234

1023510235
The increment here is an example of a data race. This can go wrong in many ways,

0 commit comments

Comments
 (0)