From f01ff18b6f817204ffb884b920d19344422f1686 Mon Sep 17 00:00:00 2001 From: nicksherron Date: Tue, 12 Oct 2021 20:28:44 -0400 Subject: [PATCH] all: fix spelling mistakes Signed-off-by: nicksherron --- control/controlclient/direct.go | 2 +- control/controlclient/map_test.go | 2 +- ipn/ipnserver/server.go | 2 +- ipn/policy/policy.go | 2 +- ipn/store/aws/store_aws_test.go | 2 +- logpolicy/logpolicy.go | 2 +- net/dns/resolver/tsdns_server_test.go | 4 ++-- net/speedtest/speedtest_server.go | 2 +- tstest/integration/vms/runner.nix | 2 +- tsweb/debug_test.go | 2 +- wgengine/bench/bench.go | 2 +- wgengine/router/ifconfig_windows.go | 2 +- wgengine/router/router_linux.go | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/control/controlclient/direct.go b/control/controlclient/direct.go index 0a7105cb3..85c4163eb 100644 --- a/control/controlclient/direct.go +++ b/control/controlclient/direct.go @@ -79,7 +79,7 @@ type Direct struct { endpoints []tailcfg.Endpoint everEndpoints bool // whether we've ever had non-empty endpoints localPort uint16 // or zero to mean auto - lastPingURL string // last PingRequest.URL received, for dup suppresion + lastPingURL string // last PingRequest.URL received, for dup suppression } type Options struct { diff --git a/control/controlclient/map_test.go b/control/controlclient/map_test.go index c4b100155..4c416564a 100644 --- a/control/controlclient/map_test.go +++ b/control/controlclient/map_test.go @@ -218,7 +218,7 @@ func TestNetmapForResponse(t *testing.T) { } nm2 := ms.netmapForResponse(&tailcfg.MapResponse{ Node: new(tailcfg.Node), - DNSConfig: nil, // implict + DNSConfig: nil, // implicit }) if !reflect.DeepEqual(nm2.DNS, *someDNSConfig) { t.Fatalf("2nd DNS wrong") diff --git a/ipn/ipnserver/server.go b/ipn/ipnserver/server.go index 10d152116..2b0943f25 100644 --- a/ipn/ipnserver/server.go +++ b/ipn/ipnserver/server.go @@ -624,7 +624,7 @@ func Run(ctx context.Context, logf logger.Logf, logid string, getEngine func() ( resetOnZero: !opts.SurviveDisconnects, } - // When the context is closed or when we return, whichever is first, close our listner + // When the context is closed or when we return, whichever is first, close our listener // and all open connections. go func() { select { diff --git a/ipn/policy/policy.go b/ipn/policy/policy.go index bda0e68c4..27a4871d8 100644 --- a/ipn/policy/policy.go +++ b/ipn/policy/policy.go @@ -36,7 +36,7 @@ func IsInterestingService(s tailcfg.Service, os string) bool { 5900, // vnc 32400, // plex - // And now some arbitary HTTP dev server ports: + // And now some arbitrary HTTP dev server ports: // Eventually we'll remove this and make all ports // work, once we nicely filter away noisy system // ports. diff --git a/ipn/store/aws/store_aws_test.go b/ipn/store/aws/store_aws_test.go index 8f0da2845..289a8170a 100644 --- a/ipn/store/aws/store_aws_test.go +++ b/ipn/store/aws/store_aws_test.go @@ -82,7 +82,7 @@ func TestNewAWSStore(t *testing.T) { store2 := s.(*awsStore) // This is specific to the test, with the non-mocked API, LoadState() should - // have been already called and sucessful as no err is returned from NewAWSStore() + // have been already called and successful as no err is returned from NewAWSStore() s2.(*awsStore).LoadState() expected := map[ipn.StateKey]string{ diff --git a/logpolicy/logpolicy.go b/logpolicy/logpolicy.go index 7b0bf6bf7..3ec45b7df 100644 --- a/logpolicy/logpolicy.go +++ b/logpolicy/logpolicy.go @@ -238,7 +238,7 @@ func winProgramDataAccessible(dir string) bool { // // If log state for cmdname exists in / or $CACHE_DIRECTORY, and no // log state for that command exists in dir, then the log state is -// moved from whereever it does exist, into dir. Leftover logs state +// moved from wherever it does exist, into dir. Leftover logs state // in / and $CACHE_DIRECTORY is deleted. func tryFixLogStateLocation(dir, cmdname string) { switch runtime.GOOS { diff --git a/net/dns/resolver/tsdns_server_test.go b/net/dns/resolver/tsdns_server_test.go index 675892a6e..bf35a03ef 100644 --- a/net/dns/resolver/tsdns_server_test.go +++ b/net/dns/resolver/tsdns_server_test.go @@ -20,7 +20,7 @@ import ( // resolveToIP returns a handler function which responds // to queries of type A it receives with an A record containing ipv4, // to queries of type AAAA with an AAAA record containing ipv6, -// to queries of type NS with an NS record containg name. +// to queries of type NS with an NS record containing name. func resolveToIP(ipv4, ipv6 netaddr.IP, ns string) dns.HandlerFunc { return func(w dns.ResponseWriter, req *dns.Msg) { m := new(dns.Msg) @@ -71,7 +71,7 @@ func resolveToIP(ipv4, ipv6 netaddr.IP, ns string) dns.HandlerFunc { // by lowercasing the question and answer names, and responds // to queries of type A it receives with an A record containing ipv4, // to queries of type AAAA with an AAAA record containing ipv6, -// to queries of type NS with an NS record containg name. +// to queries of type NS with an NS record containing name. func resolveToIPLowercase(ipv4, ipv6 netaddr.IP, ns string) dns.HandlerFunc { return func(w dns.ResponseWriter, req *dns.Msg) { m := new(dns.Msg) diff --git a/net/speedtest/speedtest_server.go b/net/speedtest/speedtest_server.go index 7985095cb..b3571dd96 100644 --- a/net/speedtest/speedtest_server.go +++ b/net/speedtest/speedtest_server.go @@ -107,7 +107,7 @@ SpeedTestLoop: case nil: // successful read default: - return nil, fmt.Errorf("unexpected error has occured: %w", err) + return nil, fmt.Errorf("unexpected error has occurred: %w", err) } } else { // Need to change the data a little bit, to avoid any compression. diff --git a/tstest/integration/vms/runner.nix b/tstest/integration/vms/runner.nix index 49f643f91..ac569cf65 100644 --- a/tstest/integration/vms/runner.nix +++ b/tstest/integration/vms/runner.nix @@ -26,7 +26,7 @@ # This package contains tools like `ssh-keygen`. openssh - # The C complier so cgo builds work. + # The C compiler so cgo builds work. gcc # The package manager Nix, just in case. diff --git a/tsweb/debug_test.go b/tsweb/debug_test.go index 3d6216bfd..31f6aaa4f 100644 --- a/tsweb/debug_test.go +++ b/tsweb/debug_test.go @@ -173,7 +173,7 @@ func ExampleDebugHandler_KV() { dbg := Debugger(mux) // Adds two list items to /debug/, showing that the condition is // red and there are 42 donuts. - dbg.KV("Conditon", "red") + dbg.KV("Condition", "red") dbg.KV("Donuts", 42) } diff --git a/wgengine/bench/bench.go b/wgengine/bench/bench.go index 305f0a31f..a86e26782 100644 --- a/wgengine/bench/bench.go +++ b/wgengine/bench/bench.go @@ -221,7 +221,7 @@ func setupNonblockingChannelTest(logf logger.Logf, traf *TrafficGen) { // Same as above, but at an intermediate blocking channel and goroutine // to make things a little more like wireguard-go. Roughly 20% slower than -// the single-channel verison. +// the single-channel version. func setupDoubleChannelTest(logf logger.Logf, traf *TrafficGen) { ch := make(chan []byte, 1000) ch2 := make(chan []byte, 1000) diff --git a/wgengine/router/ifconfig_windows.go b/wgengine/router/ifconfig_windows.go index 3c8f97642..7f2fc417e 100644 --- a/wgengine/router/ifconfig_windows.go +++ b/wgengine/router/ifconfig_windows.go @@ -257,7 +257,7 @@ func configureInterface(cfg *Config, tun *tun.NativeTun) (retErr error) { return fmt.Errorf("getting interface: %w", err) } - // Send non-nil return errors to retErrc, to interupt our background + // Send non-nil return errors to retErrc, to interrupt our background // setPrivateNetwork goroutine. retErrc := make(chan error, 1) defer func() { diff --git a/wgengine/router/router_linux.go b/wgengine/router/router_linux.go index 279d8c93b..b0fc382d0 100644 --- a/wgengine/router/router_linux.go +++ b/wgengine/router/router_linux.go @@ -192,7 +192,7 @@ func newUserspaceRouterAdvanced(logf logger.Logf, tunname string, linkMon *monit // set a timer to restore our rules, in case they were deleted. The timer lets // us do one fixup in response to a batch of rule deletes. It also lets us // delay arbitrarily to prevent a high-speed fight over the rule between -// competiting processes. (Although empirically, systemd doesn't fight us +// competing processes. (Although empirically, systemd doesn't fight us // like that... yet.) // // Note that we don't care about the table number. We don't strictly even care