mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Merge pull request #584 from d3faultdotxbe/master
Fix tiny typo in CP.2
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user