From 0b275097b6ec41fc7f1fd91853fb18faee272f41 Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 10 Oct 2018 21:49:09 +0200 Subject: [PATCH] Fixed a typo within ES.23 --- CppCoreGuidelines.md | 2 +- scripts/hunspell/isocpp.dic | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index e999f36..7a02c2b 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -10508,7 +10508,7 @@ The C++17 rules are somewhat less surprising: auto x2 = {7}; // x2 is an initializer_list with an element 7 auto x11 {7, 8}; // error: two initializers - auto x22 = {7, 8}; // x2 is an initializer_list with elements 7 and 8 + auto x22 = {7, 8}; // x22 is an initializer_list with elements 7 and 8 So use `={...}` if you really want an `initializer_list` diff --git a/scripts/hunspell/isocpp.dic b/scripts/hunspell/isocpp.dic index c61eb7b..1bab14e 100644 --- a/scripts/hunspell/isocpp.dic +++ b/scripts/hunspell/isocpp.dic @@ -621,6 +621,7 @@ WG21 'widen' x1 x2 +x22 xmax xor Xs