From 4a0f51696e3b46eb8d9b6c152b2b412bfcad1b7f Mon Sep 17 00:00:00 2001 From: cui fliter Date: Wed, 12 Jul 2023 19:11:05 +0800 Subject: [PATCH] all: remove duplicate word and fix comment Change-Id: I3302b94a47f384ec2519d08af50b3b5725c5b42a Reviewed-on: https://go-review.googlesource.com/c/go/+/508995 Reviewed-by: Cherry Mui TryBot-Result: Gopher Robot Run-TryBot: shuang cui Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Auto-Submit: Ian Lance Taylor --- src/cmd/link/internal/loadpe/ldpe.go | 2 +- src/os/error.go | 2 +- 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 -- 2.50.0