various: add more missing apostrophes in comments

Updates #cleanup

Change-Id: I79a0fda9783064a226ee9bcee2c1148212f6df7b
Signed-off-by: Alex Chan <alexc@tailscale.com>
This commit is contained in:
Alex Chan 2025-11-17 16:35:36 +00:00 committed by Alex Chan
parent 1e95bfa184
commit 200383dce5
3 changed files with 4 additions and 4 deletions

View File

@ -678,7 +678,7 @@ func markAncestorIntersectionAUMs(storage Chonk, verdict map[AUMHash]retainState
toScan := make([]AUMHash, 0, len(verdict)) toScan := make([]AUMHash, 0, len(verdict))
for h, v := range verdict { for h, v := range verdict {
if (v & retainAUMMask) == 0 { if (v & retainAUMMask) == 0 {
continue // not marked for retention, so dont need to consider it continue // not marked for retention, so don't need to consider it
} }
if h == candidateAncestor { if h == candidateAncestor {
continue continue
@ -781,7 +781,7 @@ func markDescendantAUMs(storage Chonk, verdict map[AUMHash]retainState) error {
toScan := make([]AUMHash, 0, len(verdict)) toScan := make([]AUMHash, 0, len(verdict))
for h, v := range verdict { for h, v := range verdict {
if v&retainAUMMask == 0 { if v&retainAUMMask == 0 {
continue // not marked, so dont need to mark descendants continue // not marked, so don't need to mark descendants
} }
toScan = append(toScan, h) toScan = append(toScan, h)
} }

View File

@ -2462,7 +2462,7 @@ func TestIsWireGuardOnlyPickEndpointByPing(t *testing.T) {
if len(state.recentPongs) != 1 { if len(state.recentPongs) != 1 {
t.Errorf("IPv4 address did not have a recentPong entry: got %v, want %v", len(state.recentPongs), 1) t.Errorf("IPv4 address did not have a recentPong entry: got %v, want %v", len(state.recentPongs), 1)
} }
// Set the latency extremely high so we dont choose endpoint during the next // Set the latency extremely high so we don't choose endpoint during the next
// addrForSendLocked call. // addrForSendLocked call.
state.recentPongs[state.recentPong].latency = time.Second state.recentPongs[state.recentPong].latency = time.Second
} }

View File

@ -1617,7 +1617,7 @@ func checkOpenWRTUsingMWAN3() (bool, error) {
// We want to match on a rule like this: // We want to match on a rule like this:
// 2001: from all fwmark 0x100/0x3f00 lookup 1 // 2001: from all fwmark 0x100/0x3f00 lookup 1
// //
// We dont match on the mask because it can vary, or the // We don't match on the mask because it can vary, or the
// table because I'm not sure if it can vary. // table because I'm not sure if it can vary.
if r.Priority >= 2001 && r.Priority <= 2004 && r.Mark != 0 { if r.Priority >= 2001 && r.Priority <= 2004 && r.Mark != 0 {
return true, nil return true, nil