all: fix typos in comments
Fix its/it's, who's/whose, wether/whether, missing apostrophes in contractions, and other misspellings across the codebase. Updates #cleanup Change-Id: I20453b81a7aceaa14ea2a551abba08a2e7f0a1d8 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
9657a93217
commit
2810f0c6f1
@@ -203,9 +203,9 @@ func (c *testChain) buildChain() {
|
||||
}
|
||||
|
||||
// AUMs with a parent need to know their hash, so we
|
||||
// only compute AUMs who's parents have been computed
|
||||
// only compute AUMs whose parents have been computed
|
||||
// each iteration. Since at least the genesis AUM
|
||||
// had no parent, theres always a path to completion
|
||||
// had no parent, there's always a path to completion
|
||||
// in O(n+1) where n is the number of AUMs.
|
||||
c.AUMs = make(map[string]AUM, len(c.Nodes))
|
||||
c.AUMHashes = make(map[string]AUMHash, len(c.Nodes))
|
||||
|
||||
+1
-1
@@ -715,7 +715,7 @@ func markActiveChain(storage Chonk, verdict map[AUMHash]retainState, minChain in
|
||||
|
||||
parent, hasParent := next.Parent()
|
||||
if !hasParent {
|
||||
// Genesis AUM (beginning of time). The chain isnt long enough to need truncating.
|
||||
// Genesis AUM (beginning of time). The chain isn't long enough to need truncating.
|
||||
return h, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -309,7 +309,7 @@ func TestMarkDescendantAUMs(t *testing.T) {
|
||||
}
|
||||
for _, h := range []AUMHash{hs["genesis"], hs["B"], hs["D"]} {
|
||||
if (verdict[h] & retainStateLeaf) != 0 {
|
||||
t.Errorf("%v was marked as a descendant and shouldnt be", h)
|
||||
t.Errorf("%v was marked as a descendant and shouldn't be", h)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user