From ddb5afd7a36ab28e334c072914997d087c6388c8 Mon Sep 17 00:00:00 2001 From: yuhangcangqian Date: Sat, 31 Aug 2024 09:39:40 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: yuhangcangqian --- internal/aghnet/net_internal_test.go | 4 ++-- internal/arpdb/arpdb_internal_test.go | 2 +- internal/home/config.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/aghnet/net_internal_test.go b/internal/aghnet/net_internal_test.go index 6b5dc392..21ecc72b 100644 --- a/internal/aghnet/net_internal_test.go +++ b/internal/aghnet/net_internal_test.go @@ -30,7 +30,7 @@ func substRootDirFS(t testing.TB, fsys fs.FS) { // RunCmdFunc is the signature of aghos.RunCommand function. type RunCmdFunc func(cmd string, args ...string) (code int, out []byte, err error) -// substShell replaces the the aghos.RunCommand function used throughout the +// substShell replaces the aghos.RunCommand function used throughout the // package with rc for tests ran under t. func substShell(t testing.TB, rc RunCmdFunc) { t.Helper() @@ -70,7 +70,7 @@ func (s mapShell) RunCmd(cmd string, args ...string) (code int, out []byte, err // ifaceAddrsFunc is the signature of net.InterfaceAddrs function. type ifaceAddrsFunc func() (ifaces []net.Addr, err error) -// substNetInterfaceAddrs replaces the the net.InterfaceAddrs function used +// substNetInterfaceAddrs replaces the net.InterfaceAddrs function used // throughout the package with f for tests ran under t. func substNetInterfaceAddrs(t *testing.T, f ifaceAddrsFunc) { t.Helper() diff --git a/internal/arpdb/arpdb_internal_test.go b/internal/arpdb/arpdb_internal_test.go index 50cd6661..1c51a7cf 100644 --- a/internal/arpdb/arpdb_internal_test.go +++ b/internal/arpdb/arpdb_internal_test.go @@ -23,7 +23,7 @@ var testdata fs.FS = os.DirFS("./testdata") // RunCmdFunc is the signature of aghos.RunCommand function. type RunCmdFunc func(cmd string, args ...string) (code int, out []byte, err error) -// substShell replaces the the aghos.RunCommand function used throughout the +// substShell replaces the aghos.RunCommand function used throughout the // package with rc for tests ran under t. func substShell(t testing.TB, rc RunCmdFunc) { t.Helper() diff --git a/internal/home/config.go b/internal/home/config.go index b8d69dae..17ee3b0c 100644 --- a/internal/home/config.go +++ b/internal/home/config.go @@ -214,7 +214,7 @@ type dnsConfig struct { // PrivateRDNSResolvers is the slice of addresses to be used as upstreams // for private requests. It's only used for PTR, SOA, and NS queries, - // containing an ARPA subdomain, came from the the client with private + // containing an ARPA subdomain, came from the client with private // address. The address considered private according to PrivateNets. // // If empty, the OS-provided resolvers are used for private requests.