From ca16137a45512ed7589707094ae381e798ea1588 Mon Sep 17 00:00:00 2001 From: Anthony Calandra Date: Sat, 12 Nov 2016 11:10:41 -0800 Subject: [PATCH] Fix decltype typo. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d624836..2f6b010 100644 --- a/README.md +++ b/README.md @@ -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`