From 60838c11e7820667da883d6058281bd41a7f2cb5 Mon Sep 17 00:00:00 2001 From: spaette Date: Mon, 9 Sep 2024 09:36:10 -0500 Subject: [PATCH] typos --- src/build.cc | 2 +- src/build_test.cc | 4 ++-- src/json.h | 2 +- src/ninja.cc | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/build.cc b/src/build.cc index 7e5f790eb9..45b290610a 100644 --- a/src/build.cc +++ b/src/build.cc @@ -526,7 +526,7 @@ void Plan::ComputeCriticalPath() { for (Edge* edge : sorted_edges) edge->set_critical_path_weight(EdgeWeightHeuristic(edge)); - // Second propagate / increment weidghts from + // Second propagate / increment weights from // children to parents. Scan the list // in reverse order to do so. for (auto reverse_it = sorted_edges.rbegin(); diff --git a/src/build_test.cc b/src/build_test.cc index c84190a040..7675aceecf 100644 --- a/src/build_test.cc +++ b/src/build_test.cc @@ -1852,7 +1852,7 @@ TEST_F(BuildWithLogTest, RestatSingleDependentOutputDirty) { // out2 and out3 will be built even though "in" is not touched when built. // Then, since out2 is rebuilt, out4 should be rebuilt -- the restat on the // "true" rule should not lead to the "touch" edge writing out2 and out3 being - // cleard. + // cleared. command_runner_.commands_ran_.clear(); state_.Reset(); EXPECT_TRUE(builder_.AddTarget("out4", &err)); @@ -3261,7 +3261,7 @@ TEST_F(BuildWithDepsLogTest, RestatMissingDepfileDepslog) { // Touch 'header.in', blank dependencies log (create a different one). // Building header.h triggers 'restat' outputs cleanup. - // Validate that out is rebuilt netherless, as deps are missing. + // Validate that out is rebuilt nevertheless, as deps are missing. fs_.Tick(); fs_.Create("header.in", ""); diff --git a/src/json.h b/src/json.h index f39c759236..3e5cf7817c 100644 --- a/src/json.h +++ b/src/json.h @@ -17,7 +17,7 @@ #include -// Encode a string in JSON format without encolsing quotes +// Encode a string in JSON format without enclosing quotes std::string EncodeJSONString(const std::string& in); // Print a string in JSON format to stdout without enclosing quotes diff --git a/src/ninja.cc b/src/ninja.cc index 2902359f15..f791b4fe26 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -154,7 +154,7 @@ struct NinjaMain : public BuildLogUser { bool RebuildManifest(const char* input_file, string* err, Status* status); /// For each edge, lookup in build log how long it took last time, - /// and record that in the edge itself. It will be used for ETA predicton. + /// and record that in the edge itself. It will be used for ETA prediction. void ParsePreviousElapsedTimes(); /// Build the targets listed on the command line.