From 774f159646f51856b7a502c758c73cb061fa1977 Mon Sep 17 00:00:00 2001 From: Huu Nguyen Date: Fri, 18 Sep 2015 09:15:25 -0700 Subject: [PATCH] Update comment in I.4 second example --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index ad167b6..ca55221 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -1027,7 +1027,7 @@ Consider using a variant or a pointer to base instead. (Future note: Consider a void draw_rect(int,int,int,int); // great opportunities for mistakes - draw_rect(p.x,p.y,10,20); // what does 20,20 mean? + draw_rect(p.x,p.y,10,20); // what does 10,20 mean? An `int` can carry arbitrary forms of information, so we must guess about the meaning of the four `int`s. Most likely, the first two are an `x`,`y` coordinate pair, but what are the last two?