aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal
diff options
context:
space:
mode:
authorAbirdcfly <fp544037857@gmail.com>2022-08-18 13:18:11 +0800
committerGopher Robot <gobot@golang.org>2022-08-18 13:54:47 +0000
commitd8f90ce0f8119bf593efb6fb91825de5b61fcda7 (patch)
treedcae46ed897b8af42ca26341a9c510329c4e6f3c /src/cmd/link/internal
parent38edd9bd8da9d7fc7beeba5fd4fd9d605457b04e (diff)
downloadgo-d8f90ce0f8119bf593efb6fb91825de5b61fcda7.tar.xz
all: remove duplicate "the" words in comments
Following CL 424454, using command rg --multiline " the\s{1,}the " * rg --multiline " the\s{1,}//\s{1,}the " * all the words "the" that are repeated in comments are found. Change-Id: I60b769b98f04c927b4c228e10f37faf190964069 Reviewed-on: https://go-review.googlesource.com/c/go/+/423836 Auto-Submit: Filippo Valsorda <filippo@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Run-TryBot: Filippo Valsorda <filippo@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Filippo Valsorda <filippo@golang.org>
Diffstat (limited to 'src/cmd/link/internal')
-rw-r--r--src/cmd/link/internal/ld/outbuf_darwin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/link/internal/ld/outbuf_darwin.go b/src/cmd/link/internal/ld/outbuf_darwin.go
index e372b3724a..9d8cb583e7 100644
--- a/src/cmd/link/internal/ld/outbuf_darwin.go
+++ b/src/cmd/link/internal/ld/outbuf_darwin.go
@@ -24,7 +24,7 @@ func (out *OutBuf) fallocate(size uint64) error {
}
// F_PEOFPOSMODE allocates from the end of the file, so we want the size difference.
// Apparently, it uses the end of the allocation, instead of the logical end of the
- // the file.
+ // file.
cursize := uint64(stat.Sys().(*syscall.Stat_t).Blocks * 512) // allocated size
if size <= cursize {
return nil