diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index d5d3ee6..bc99826 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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,