mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #584 from d3faultdotxbe/master
Fix tiny typo in CP.2
This commit is contained in:
commit
c06c6b28de
|
@ -10229,7 +10229,7 @@ production software at this very moment. One very simple example:
|
|||
|
||||
int get_id() {
|
||||
static int id = 1;
|
||||
return i++;
|
||||
return id++;
|
||||
}
|
||||
|
||||
The increment here is an example of a data race. This can go wrong in many ways,
|
||||
|
|
Loading…
Reference in New Issue
Block a user