summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-Antoine Ruel <maruel@gmail.com>2021-12-28 15:12:48 -0500
committerMarc-Antoine Ruel <maruel@gmail.com>2021-12-28 15:12:48 -0500
commit4f363609e04cf842930c2d5276f0ad93c2945e7b (patch)
treeea44bcc4e14267f230dbc34d5676d6a5afa1e134
parentf0e734cd30db752e401e76316b4e08b6a9b1abab (diff)
downloadninja-4f363609e04cf842930c2d5276f0ad93c2945e7b.tar.gz
Fix two typos
One in ninja_test usage text, the other in a unit test comment.
-rw-r--r--src/build_test.cc2
-rw-r--r--src/ninja_test.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/build_test.cc b/src/build_test.cc
index 326a7d6..4ef62b2 100644
--- a/src/build_test.cc
+++ b/src/build_test.cc
@@ -2355,7 +2355,7 @@ struct BuildWithDepsLogTest : public BuildTest {
void* builder_;
};
-/// Run a straightforwad build where the deps log is used.
+/// Run a straightforward build where the deps log is used.
TEST_F(BuildWithDepsLogTest, Straightforward) {
string err;
// Note: in1 was created by the superclass SetUp().
diff --git a/src/ninja_test.cc b/src/ninja_test.cc
index b40e176..6720dec 100644
--- a/src/ninja_test.cc
+++ b/src/ninja_test.cc
@@ -67,7 +67,7 @@ void Usage() {
"usage: ninja_tests [options]\n"
"\n"
"options:\n"
-" --gtest_filter=POSTIVE_PATTERN[-NEGATIVE_PATTERN]\n"
+" --gtest_filter=POSITIVE_PATTERN[-NEGATIVE_PATTERN]\n"
" Run tests whose names match the positive but not the negative pattern.\n"
" '*' matches any substring. (gtest's ':', '?' are not implemented).\n");
}