mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
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() {
|
int get_id() {
|
||||||
static int id = 1;
|
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,
|
The increment here is an example of a data race. This can go wrong in many ways,
|
||||||
|
|||||||
Reference in New Issue
Block a user