From 52bde3038445cf78468bb95220942b9b87b982ab Mon Sep 17 00:00:00 2001 From: Little-Flower-171 <36354459+Little-Flower-171@users.noreply.github.com> Date: Thu, 7 Feb 2019 19:29:39 +0800 Subject: [PATCH] Replace std::is_void by std::decay Currently `std::is_void` is used as an example of type trait. But `std::is_void` contains `::value` instead of `::type`, thus not fitting with the definition of "trait." --- doc/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/index.md b/doc/index.md index fd823d1..dec6972 100644 --- a/doc/index.md +++ b/doc/index.md @@ -49,7 +49,7 @@ For example, is a trait taking an arbitrary number of types that always "returns" `void`. There are many familiar examples of traits in the Standard Library; `std::remove_reference` and -`std::is_void` to name two. +`std::decay` to name two. ## Aliases