From d70cd4e3585999ee4a41c2028c9837071ba07ab3 Mon Sep 17 00:00:00 2001 From: Ryan Sinnet Date: Mon, 25 Feb 2019 08:03:28 -0800 Subject: [PATCH] Fix grammatical error in primer.md --- googletest/docs/primer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/googletest/docs/primer.md b/googletest/docs/primer.md index 6344ba33..fb96cdf9 100644 --- a/googletest/docs/primer.md +++ b/googletest/docs/primer.md @@ -190,7 +190,7 @@ evaluation order. tests if they are in the same memory location, not if they have the same value. Therefore, if you want to compare C strings (e.g. `const char*`) by value, use `ASSERT_STREQ()`, which will be described later on. In particular, to assert -that a C string is `NULL`, use `ASSERT_STREQ(c_string, NULL)`. Consider use +that a C string is `NULL`, use `ASSERT_STREQ(c_string, NULL)`. Consider using `ASSERT_EQ(c_string, nullptr)` if c++11 is supported. To compare two `string` objects, you should use `ASSERT_EQ`.