aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-07-12 19:11:05 +0800
committerGopher Robot <gobot@golang.org>2023-07-13 13:31:04 +0000
commit4a0f51696e3b46eb8d9b6c152b2b412bfcad1b7f (patch)
treeff32b65d0afbeb7b3d221ca915b9198eba51d153
parent49d42128fd8594c172162961ead19ac95e247d24 (diff)
downloadgo-4a0f51696e3b46eb8d9b6c152b2b412bfcad1b7f.tar.gz
go-4a0f51696e3b46eb8d9b6c152b2b412bfcad1b7f.zip
all: remove duplicate word and fix comment
Change-Id: I3302b94a47f384ec2519d08af50b3b5725c5b42a Reviewed-on: https://go-review.googlesource.com/c/go/+/508995 Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: shuang cui <imcusg@gmail.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
-rw-r--r--src/cmd/link/internal/loadpe/ldpe.go2
-rw-r--r--src/os/error.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/link/internal/loadpe/ldpe.go b/src/cmd/link/internal/loadpe/ldpe.go
index 0a610ff048..81c28415a2 100644
--- a/src/cmd/link/internal/loadpe/ldpe.go
+++ b/src/cmd/link/internal/loadpe/ldpe.go
@@ -222,7 +222,7 @@ type peLoaderState struct {
var comdatDefinitions = make(map[string]int64)
// Load loads the PE file pn from input.
-// Symbols from the object file are created via the loader 'l', and
+// Symbols from the object file are created via the loader 'l',
// and a slice of the text symbols is returned.
// If an .rsrc section or set of .rsrc$xx sections is found, its symbols are
// returned as rsrc.
diff --git a/src/os/error.go b/src/os/error.go
index 9827446e65..62ede9ded3 100644
--- a/src/os/error.go
+++ b/src/os/error.go
@@ -31,7 +31,7 @@ func errNoDeadline() error { return poll.ErrNoDeadline }
// errDeadlineExceeded returns the value for os.ErrDeadlineExceeded.
// This error comes from the internal/poll package, which is also
-// used by package net. Doing this this way ensures that the net
+// used by package net. Doing it this way ensures that the net
// package will return os.ErrDeadlineExceeded for an exceeded deadline,
// as documented by net.Conn.SetDeadline, without requiring any extra
// work in the net package and without requiring the internal/poll