fix: typo error (#20)

This commit is contained in:
Rholais Lii
2018-04-14 19:22:12 +08:00
committed by Ou Changkun
parent 622b5b4335
commit cba5c6c652

View File

@@ -375,7 +375,7 @@ decltype(x+y) z;
if (std::is_same<decltype(x), int>::value) if (std::is_same<decltype(x), int>::value)
std::cout << "type x == int" << std::endl; std::cout << "type x == int" << std::endl;
if (std::is_same<decltype(x), float>::value) if (std::is_same<decltype(x), float>::value)
std::cout << "type z == float" << std::endl; std::cout << "type x == float" << std::endl;
if (std::is_same<decltype(x), decltype(z)>::value) if (std::is_same<decltype(x), decltype(z)>::value)
std::cout << "type z == type x" << std::endl; std::cout << "type z == type x" << std::endl;
``` ```