Skip to content

Commit

Permalink
Merge pull request #2494 from vaerksted/master
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
jhasse authored Sep 19, 2024
2 parents 41ecb09 + 60838c1 commit 6a31acc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions src/build_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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", "");

Expand Down
2 changes: 1 addition & 1 deletion src/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <string>

// 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
Expand Down
2 changes: 1 addition & 1 deletion src/ninja.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6a31acc

Please sign in to comment.