mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #281 from fkaelberer/patch-3
Fix minor typos and spacing
This commit is contained in:
commit
620eda5c3c
|
@ -7431,11 +7431,11 @@ For containers, there is a tradition for using `{...}` for a list of elements an
|
|||
|
||||
Initialization of a variable declared `auto` with a single value `{v}` surprising results until recently:
|
||||
|
||||
auto x1 {7}; // x1 is sn int with the value 7
|
||||
auto x2 = {7}; // x2 is and initializer_int<int> with an element 7
|
||||
auto x1 {7}; // x1 is an int with the value 7
|
||||
auto x2 = {7}; // x2 is an initializer_int<int> with an element 7
|
||||
|
||||
auto x11 {7, 8}; // error: two initializers
|
||||
auto x22 = {7, 8}; // x2 is and initializer_int<int> with elements 7 and 8
|
||||
auto x11 {7, 8}; // error: two initializers
|
||||
auto x22 = {7, 8}; // x2 is an initializer_int<int> with elements 7 and 8
|
||||
|
||||
##### Exception
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user