Skip to content

Commit

Permalink
all: remove repeated definite articles
Browse files Browse the repository at this point in the history
Change-Id: I2100bb55aeecccad5ff3462b68b7308f9e20bf12
Reviewed-on: https://go-review.googlesource.com/c/tools/+/489655
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: shuang cui <imcusg@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
  • Loading branch information
cuishuang authored and gopherbot committed Apr 27, 2023
1 parent ac40903 commit 165099b
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gopls/internal/lsp/analysis/fillstruct/fillstruct.go
Expand Up @@ -168,7 +168,7 @@ func SuggestedFix(fset *token.FileSet, start, end token.Pos, content []byte, fil
return nil, fmt.Errorf("%s is not a (pointer to) struct type",
types.TypeString(typ, types.RelativeTo(pkg)))
}
// Inv: typ is the the possibly-named struct type.
// Inv: typ is the possibly-named struct type.

fieldCount := tStruct.NumFields()

Expand Down
6 changes: 3 additions & 3 deletions gopls/internal/lsp/cache/snapshot.go
Expand Up @@ -74,7 +74,7 @@ type snapshot struct {
// view.initializationSema.
initialized bool
// initializedErr holds the last error resulting from initialization. If
// initialization fails, we only retry when the the workspace modules change,
// initialization fails, we only retry when the workspace modules change,
// to avoid too many go/packages calls.
initializedErr *source.CriticalError

Expand Down Expand Up @@ -229,7 +229,7 @@ func (s *snapshot) awaitPromise(ctx context.Context, p *memoize.Promise) (interf
// The destroyedBy argument is used for debugging.
//
// v.snapshotMu must be held while calling this function, in order to preserve
// the invariants described by the the docstring for v.snapshot.
// the invariants described by the docstring for v.snapshot.
func (v *View) destroy(s *snapshot, destroyedBy string) {
v.snapshotWG.Add(1)
go func() {
Expand Down Expand Up @@ -1609,7 +1609,7 @@ func (s *snapshot) reloadOrphanedOpenFiles(ctx context.Context) error {
// mark the failures so we don't bother retrying until the file's
// content changes.
//
// TODO(rfindley): is it possible that the the load stopped early for an
// TODO(rfindley): is it possible that the load stopped early for an
// unrelated errors? If so, add a fallback?
//
// Check for context cancellation so that we don't incorrectly mark files
Expand Down
2 changes: 1 addition & 1 deletion gopls/internal/lsp/fake/client.go
Expand Up @@ -14,7 +14,7 @@ import (
)

// ClientHooks are a set of optional hooks called during handling of
// the corresponding client method (see protocol.Client for the the
// the corresponding client method (see protocol.Client for the
// LSP server-to-client RPCs) in order to make test expectations
// awaitable.
type ClientHooks struct {
Expand Down
2 changes: 1 addition & 1 deletion gopls/internal/lsp/protocol/generate/README.md
Expand Up @@ -133,4 +133,4 @@ in the gopls code. Using more "or" types in gopls requires more elaborate, but s
But even without all the adjustments, making this its own module would face problems; a number of
dependencies would have to be factored out. And, it is fragile. The custom unmarshaling code knows what
types it expects. A design that return an 'any' on unexpected types would match the json
'ignore unexpected values' philosophy better, but the the Go code would need extra checking.
'ignore unexpected values' philosophy better, but the Go code would need extra checking.
2 changes: 1 addition & 1 deletion gopls/internal/lsp/regtest/marker.go
Expand Up @@ -128,7 +128,7 @@ var update = flag.Bool("update", false, "if set, update test data during marker
// a 1:1 correspondence between observed diagnostics and diag annotations
//
// - def(src, dst location): perform a textDocument/definition request at
// the src location, and check the the result points to the dst location.
// the src location, and check the result points to the dst location.
//
// - hover(src, dst location, g Golden): perform a textDocument/hover at the
// src location, and checks that the result is the dst location, with hover
Expand Down
2 changes: 1 addition & 1 deletion gopls/internal/lsp/source/view.go
Expand Up @@ -539,7 +539,7 @@ func (m *Metadata) String() string { return string(m.ID) }
// import metadata (DepsBy{Imp,Pkg}Path).
//
// Such test variants arise when an x_test package (in this case net/url_test)
// imports a package (in this case net/http) that itself imports the the
// imports a package (in this case net/http) that itself imports the
// non-x_test package (in this case net/url).
//
// This is done so that the forward transitive closure of net/url_test has
Expand Down
2 changes: 1 addition & 1 deletion internal/diff/lcs/doc.go
Expand Up @@ -151,6 +151,6 @@ be recomputed.
and can be found at
http://www.xmailserver.org/diff2.pdf
(There is a generic implementation of the algorithm the the repository with git hash
(There is a generic implementation of the algorithm the repository with git hash
b9ad7e4ade3a686d608e44475390ad428e60e7fc)
*/
2 changes: 1 addition & 1 deletion internal/gcimporter/shallow_test.go
Expand Up @@ -66,7 +66,7 @@ func TestShallowStd(t *testing.T) {
}

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

0 comments on commit 165099b

Please sign in to comment.