Skip to content

Commit 165099b

Browse files
cuishuanggopherbot
authored andcommitted
all: remove repeated definite articles
Change-Id: I2100bb55aeecccad5ff3462b68b7308f9e20bf12 Reviewed-on: https://go-review.googlesource.com/c/tools/+/489655 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: shuang cui <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> gopls-CI: kokoro <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent ac40903 commit 165099b

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

gopls/internal/lsp/analysis/fillstruct/fillstruct.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func SuggestedFix(fset *token.FileSet, start, end token.Pos, content []byte, fil
168168
return nil, fmt.Errorf("%s is not a (pointer to) struct type",
169169
types.TypeString(typ, types.RelativeTo(pkg)))
170170
}
171-
// Inv: typ is the the possibly-named struct type.
171+
// Inv: typ is the possibly-named struct type.
172172

173173
fieldCount := tStruct.NumFields()
174174

gopls/internal/lsp/cache/snapshot.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ type snapshot struct {
7474
// view.initializationSema.
7575
initialized bool
7676
// initializedErr holds the last error resulting from initialization. If
77-
// initialization fails, we only retry when the the workspace modules change,
77+
// initialization fails, we only retry when the workspace modules change,
7878
// to avoid too many go/packages calls.
7979
initializedErr *source.CriticalError
8080

@@ -229,7 +229,7 @@ func (s *snapshot) awaitPromise(ctx context.Context, p *memoize.Promise) (interf
229229
// The destroyedBy argument is used for debugging.
230230
//
231231
// v.snapshotMu must be held while calling this function, in order to preserve
232-
// the invariants described by the the docstring for v.snapshot.
232+
// the invariants described by the docstring for v.snapshot.
233233
func (v *View) destroy(s *snapshot, destroyedBy string) {
234234
v.snapshotWG.Add(1)
235235
go func() {
@@ -1609,7 +1609,7 @@ func (s *snapshot) reloadOrphanedOpenFiles(ctx context.Context) error {
16091609
// mark the failures so we don't bother retrying until the file's
16101610
// content changes.
16111611
//
1612-
// TODO(rfindley): is it possible that the the load stopped early for an
1612+
// TODO(rfindley): is it possible that the load stopped early for an
16131613
// unrelated errors? If so, add a fallback?
16141614
//
16151615
// Check for context cancellation so that we don't incorrectly mark files

gopls/internal/lsp/fake/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
// ClientHooks are a set of optional hooks called during handling of
17-
// the corresponding client method (see protocol.Client for the the
17+
// the corresponding client method (see protocol.Client for the
1818
// LSP server-to-client RPCs) in order to make test expectations
1919
// awaitable.
2020
type ClientHooks struct {

gopls/internal/lsp/protocol/generate/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ in the gopls code. Using more "or" types in gopls requires more elaborate, but s
133133
But even without all the adjustments, making this its own module would face problems; a number of
134134
dependencies would have to be factored out. And, it is fragile. The custom unmarshaling code knows what
135135
types it expects. A design that return an 'any' on unexpected types would match the json
136-
'ignore unexpected values' philosophy better, but the the Go code would need extra checking.
136+
'ignore unexpected values' philosophy better, but the Go code would need extra checking.

gopls/internal/lsp/regtest/marker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ var update = flag.Bool("update", false, "if set, update test data during marker
128128
// a 1:1 correspondence between observed diagnostics and diag annotations
129129
//
130130
// - def(src, dst location): perform a textDocument/definition request at
131-
// the src location, and check the the result points to the dst location.
131+
// the src location, and check the result points to the dst location.
132132
//
133133
// - hover(src, dst location, g Golden): perform a textDocument/hover at the
134134
// src location, and checks that the result is the dst location, with hover

gopls/internal/lsp/source/view.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ func (m *Metadata) String() string { return string(m.ID) }
539539
// import metadata (DepsBy{Imp,Pkg}Path).
540540
//
541541
// Such test variants arise when an x_test package (in this case net/url_test)
542-
// imports a package (in this case net/http) that itself imports the the
542+
// imports a package (in this case net/http) that itself imports the
543543
// non-x_test package (in this case net/url).
544544
//
545545
// This is done so that the forward transitive closure of net/url_test has

internal/diff/lcs/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,6 @@ be recomputed.
151151
and can be found at
152152
http://www.xmailserver.org/diff2.pdf
153153
154-
(There is a generic implementation of the algorithm the the repository with git hash
154+
(There is a generic implementation of the algorithm the repository with git hash
155155
b9ad7e4ade3a686d608e44475390ad428e60e7fc)
156156
*/

internal/gcimporter/shallow_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func TestShallowStd(t *testing.T) {
6666
}
6767

6868
// typecheck reads, parses, and type-checks a package.
69-
// It squirrels the export data in the the ppkg.ExportFile field.
69+
// It squirrels the export data in the ppkg.ExportFile field.
7070
func typecheck(t *testing.T, ppkg *packages.Package) {
7171
if ppkg.PkgPath == "unsafe" {
7272
return // unsafe is special

0 commit comments

Comments
 (0)