From daaae83826398fb8b6dfe0c811546986b32b1ee8 Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Fri, 31 Mar 2017 22:05:28 -0300 Subject: [PATCH] Fix C++11 decltype example It was using an undeclared variable on the assignment, now it uses the previous one, which I guessed was the original thought. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bcb6ac7..ac6d4dc 100644 --- a/README.md +++ b/README.md @@ -697,7 +697,7 @@ decltype(c) d = a; // `decltype(c)` is `const int&` decltype(123) e = 123; // `decltype(123)` is `int` int&& f = 1; // `f` is declared as type `int&&` decltype(f) g = 1; // `decltype(f) is `int&&` -decltype((a)) h = x; // `decltype((a))` is int& +decltype((a)) h = g; // `decltype((a))` is int& ``` ```c++ template