Skip to content

Commit 8382c21

Browse files
author
d3fault
committed
Fix tiny typo in CP.2
1 parent c495084 commit 8382c21

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)