Skip to content

Commit 6e0f8ac

Browse files
authored
Tweak one of ES.10's examples for verisimilitude. (#1611)
For some reason the trailing `e = 3` seemed more of a red flag than anything else about this line. Let's imply that the programmer is trying to make some constants for hexadecimal translation.
1 parent 46dadd0 commit 6e0f8ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CppCoreGuidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10314,7 +10314,7 @@ or:
1031410314

1031510315
##### Example
1031610316

10317-
int a = 7, b = 9, c, d = 10, e = 3;
10317+
int a = 10, b = 11, c = 12, d, e = 14, f = 15;
1031810318

1031910319
In a long list of declarators it is easy to overlook an uninitialized variable.
1032010320

0 commit comments

Comments
 (0)