From 8382c216d7a069bdb1acbc32958d71766931f364 Mon Sep 17 00:00:00 2001 From: d3fault Date: Tue, 12 Apr 2016 21:08:25 -0700 Subject: [PATCH] Fix tiny typo in CP.2 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,