Skip to content

Commit 70d65ec

Browse files
cuishuanggopherbot
authored andcommitted
all: minor improvement for docs
Change-Id: Id87d6c12c79e790cf550ce41dd73d4149e83c07a Reviewed-on: https://go-review.googlesource.com/c/tools/+/716940 Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Robert Findley <rfindley@google.com> Reviewed-by: Michael Pratt <mpratt@google.com>
1 parent 5ac454b commit 70d65ec

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

go/packages/visit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func PrintErrors(pkgs []*Package) int {
7878
return n
7979
}
8080

81-
// Postorder returns an iterator over the the packages in
81+
// Postorder returns an iterator over the packages in
8282
// the import graph whose roots are pkg.
8383
// Packages are enumerated in dependencies-first order.
8484
func Postorder(pkgs []*Package) iter.Seq[*Package] {

gopls/internal/test/marker/testdata/codeaction/addtest.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ func (*ReturnPtrError) Method(in string) string {return in} //@codeaction("Metho
10621062
-- constructorcomparison/constructorcomparison.go --
10631063
package main
10641064

1065-
// Foo have two constructors. NewFoo is prefered over others.
1065+
// Foo have two constructors. NewFoo is preferred over others.
10661066
func CreateAFoo() Foo {return Foo{}}
10671067
func NewFoo() Foo {return Foo{}}
10681068

internal/mcp/tool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type ToolHandler func(context.Context, *ServerSession, *CallToolParamsFor[map[st
2323
// A ToolHandlerFor handles a call to tools/call with typed arguments and results.
2424
type ToolHandlerFor[In, Out any] func(context.Context, *ServerSession, *CallToolParamsFor[In]) (*CallToolResultFor[Out], error)
2525

26-
// A rawToolHandler is like a ToolHandler, but takes the arguments as as json.RawMessage.
26+
// A rawToolHandler is like a ToolHandler, but takes the arguments as json.RawMessage.
2727
type rawToolHandler = func(context.Context, *ServerSession, *CallToolParamsFor[json.RawMessage]) (*CallToolResult, error)
2828

2929
// A Tool is a tool definition that is bound to a tool handler.

internal/refactor/inline/inline.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2019,7 +2019,7 @@ func checkFalconConstraints(logf logger, params []*parameter, args []*argument,
20192019
pkg.Scope().Insert(types.NewTypeName(token.NoPos, pkg, typ.Name, types.Typ[typ.Kind]))
20202020
}
20212021

2022-
// Declared constants and variables for for parameters.
2022+
// Declared constants and variables for parameters.
20232023
nconst := 0
20242024
for i, param := range params {
20252025
name := param.info.Name

internal/versions/versions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func TestVersionComparisons(t *testing.T) {
5858
x, y string
5959
want int
6060
}{
61-
// All comparisons of go2, go1.21.2, go1.21rc2, go1.21rc2, go1, go0.0, "", bad
61+
// All comparisons of go2, go1.21.2, go1.21rc2, go1.21rc, go1, go0.0, "", bad
6262
{"go2", "go2", 0},
6363
{"go2", "go1.21.2", +1},
6464
{"go2", "go1.21rc2", +1},

refactor/rename/rename.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func Main(ctxt *build.Context, offsetFlag, fromFlag, to string) error {
265265
if requiresGlobalRename(fromObjects, to) {
266266
// For a local refactoring, we needn't load more
267267
// packages, but if the renaming affects the package's
268-
// API, we we must load all packages that depend on the
268+
// API, we must load all packages that depend on the
269269
// package defining the object, plus their tests.
270270

271271
if Verbose {

0 commit comments

Comments
 (0)