Fix decltype typo.

This commit is contained in:
Anthony Calandra
2016-11-12 11:10:41 -08:00
parent 535c4b6af2
commit ca16137a45

View File

@@ -605,7 +605,7 @@ getXRef(); // int& to `x`
`decltype` is an operator which returns the _declared type_ of an expression passed to it. Examples of `decltype`:
```c++
int a = 1; // `a` is declared as type `int`
decltype(x) b = a; // `decltype(x)` is `int`
decltype(a) b = a; // `decltype(a)` is `int`
const int& c = a; // `c` is declared as type `const int&`
decltype(c) d = a; // `decltype(c)` is `const int&`
decltype(123) e = 123; // `decltype(123)` is `int`