summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrystian Kuzniarek <krystian.kuzniarek@gmail.com>2019-09-16 17:11:20 (GMT)
committerKrystian Kuzniarek <krystian.kuzniarek@gmail.com>2019-09-16 17:22:10 (GMT)
commit3339b97c6a7fb908cd343ff8251d86782ea264a8 (patch)
treed0e1033db402468d52290e8cf6476a9e9255a9eb
parent7c2bd3af981e9f257a0b61ce664953008c105dad (diff)
downloadgoogletest-3339b97c6a7fb908cd343ff8251d86782ea264a8.zip
googletest-3339b97c6a7fb908cd343ff8251d86782ea264a8.tar.gz
googletest-3339b97c6a7fb908cd343ff8251d86782ea264a8.tar.bz2
square away the stuff that hasn't been merged in a manual reviewrefs/pull/2448/head
This fixes up f2fb48c3 (a manual merge) that has abandoned some things from PR #2407.
-rw-r--r--googletest/docs/advanced.md2
-rw-r--r--googletest/include/gtest/gtest.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md
index 3e5f779..c30ef85 100644
--- a/googletest/docs/advanced.md
+++ b/googletest/docs/advanced.md
@@ -465,7 +465,7 @@ You can call the function
to assert that types `T1` and `T2` are the same. The function does nothing if
the assertion is satisfied. If the types are different, the function call will
fail to compile, the compiler error message will say that
-`type1 and type2 are not the same type` and most likely (depending on the compiler)
+`T1 and T2 are not the same type` and most likely (depending on the compiler)
show you the actual values of `T1` and `T2`. This is mainly useful inside
template code.
diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h
index dbe5b1c..37a1762 100644
--- a/googletest/include/gtest/gtest.h
+++ b/googletest/include/gtest/gtest.h
@@ -2298,8 +2298,7 @@ class GTEST_API_ ScopedTrace {
// to cause a compiler error.
template <typename T1, typename T2>
constexpr bool StaticAssertTypeEq() noexcept {
- static_assert(std::is_same<T1, T2>::value,
- "type1 and type2 are not the same type");
+ static_assert(std::is_same<T1, T2>::value, "T1 and T2 are not the same type");
return true;
}