Skip to content

Commit c7d5dca

Browse files
committed
clusterlin: fix typos
1 parent 777179b commit c7d5dca

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/cluster_linearize.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ void FixLinearization(const DepGraph<SetType>& depgraph, std::span<DepGraphIndex
13671367
// in between forward.
13681368
while (place_before.Any()) {
13691369
// j cannot be 0 here; if it was, then there was necessarily nothing earlier which
1370-
// elem needs to be place before anymore, and place_before would be empty.
1370+
// elem needs to be placed before anymore, and place_before would be empty.
13711371
Assume(j > 0);
13721372
auto to_swap = linearization[len - 1 - (j - 1)];
13731373
place_before.Reset(to_swap);

src/txgraph.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class TxGraphImpl final : public TxGraph
335335

336336
// Simple helper functions.
337337

338-
/** Swap the Entrys referred to by a and b. */
338+
/** Swap the Entry referred to by a and the one referred to by b. */
339339
void SwapIndexes(GraphIndex a, GraphIndex b) noexcept;
340340
/** If idx exists in the specified level ClusterSet (explicitly, or in the level below and not
341341
* removed), return the Cluster it is in. Otherwise, return nullptr. */
@@ -408,8 +408,8 @@ class TxGraphImpl final : public TxGraph
408408

409409
// Functions related to various normalization/application steps.
410410
/** Get rid of unlinked Entry objects in m_entries, if possible (this changes the GraphIndex
411-
* values for remaining Entrys, so this only does something when no to-be-applied operations
412-
* or staged removals referring to GraphIndexes remain). */
411+
* values for remaining Entry objects, so this only does something when no to-be-applied
412+
* operations or staged removals referring to GraphIndexes remain). */
413413
void Compact() noexcept;
414414
/** If cluster is not in staging, copy it there, and return a pointer to it. This has no
415415
* effect if only a main graph exists, but if staging exists this modifies the locators of its
@@ -505,7 +505,7 @@ void TxGraphImpl::ClearLocator(int level, GraphIndex idx) noexcept
505505

506506
void Cluster::Updated(TxGraphImpl& graph) noexcept
507507
{
508-
// Update all the Locators for this Cluster's Entrys.
508+
// Update all the Locators for this Cluster's Entry objects.
509509
for (DepGraphIndex idx : m_linearization) {
510510
auto& entry = graph.m_entries[m_mapping[idx]];
511511
entry.m_locator[m_level].SetPresent(this, idx);
@@ -1937,7 +1937,7 @@ void Cluster::SanityCheck(const TxGraphImpl& graph, int level) const
19371937
assert(m_depgraph.IsConnected(linchunking.GetChunk(0).transactions));
19381938
}
19391939
}
1940-
// Verify that each element of m_depgraph occured in m_linearization.
1940+
// Verify that each element of m_depgraph occurred in m_linearization.
19411941
assert(m_done == m_depgraph.Positions());
19421942
}
19431943

src/txgraph.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class TxGraph
9999
/** Create a staging graph (which cannot exist already). This acts as if a full copy of
100100
* the transaction graph is made, upon which further modifications are made. This copy can
101101
* be inspected, and then either discarded, or the main graph can be replaced by it by
102-
* commiting it. */
102+
* committing it. */
103103
virtual void StartStaging() noexcept = 0;
104104
/** Discard the existing active staging graph (which must exist). */
105105
virtual void AbortStaging() noexcept = 0;

0 commit comments

Comments
 (0)