aboutsummaryrefslogtreecommitdiffhomepage
path: root/site
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-04-04 16:26:34 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2017-04-04 18:43:49 +0200
commitc3286110c1b8b76c3605c557f58549bb93ad820e (patch)
treedb24d1d30323f4996b1b668f8b04e5fe1a3dec67 /site
parent6326f98ed84c2e0677b552cd4af808d482e8749c (diff)
Fix typos in Bazel C++ tutorial documentation
The tutorial discusses code for a "Hello World" program, but the test near the end is named "FactorialTest". This seems like a copy-and-paste error. PiperOrigin-RevId: 152140360
Diffstat (limited to 'site')
-rw-r--r--site/versions/master/docs/tutorial/cpp.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/site/versions/master/docs/tutorial/cpp.md b/site/versions/master/docs/tutorial/cpp.md
index cd18ce2ea3..23362010ef 100644
--- a/site/versions/master/docs/tutorial/cpp.md
+++ b/site/versions/master/docs/tutorial/cpp.md
@@ -271,8 +271,8 @@ more complicated:
* `googletest-release-1.7.0/src/gtest-all.cc` `#include`s all of the other files in
`googletest-release-1.7.0/src/`, so we need to exclude it from the compile or we'll get
link errors for duplicate symbols.
-* It uses header files that relative to the `googletest-release-1.7.0/include/` directory
- (`"gtest/gtest.h"`), so we must add that directory the include paths.
+* It uses header files that are relative to the `googletest-release-1.7.0/include/` directory
+ (`"gtest/gtest.h"`), so we must add that directory to the include paths.
* It needs to link in pthread, so we add that as a `linkopt`.
The final rule looks like this:
@@ -339,7 +339,7 @@ For example, we could create a test `./test/hello-test.cc` such as:
#include "gtest/gtest.h"
#include "lib/hello-greet.h"
-TEST(FactorialTest, Negative) {
+TEST(HelloTest, GetGreet) {
EXPECT_EQ(get_greet("Bazel"), "Hello Bazel");
}
```