Skip to content

Commit e0a9567

Browse files
vitalmotiftimothy-king
authored andcommitted
all: fix some comments
Change-Id: Id4d3bcdcb663dccaf149ccadae1d0513c868a049 GitHub-Last-Rev: 4534649 GitHub-Pull-Request: #486 Reviewed-on: https://go-review.googlesource.com/c/tools/+/573015 Reviewed-by: Robert Findley <[email protected]> Reviewed-by: Tim King <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Tim King <[email protected]>
1 parent c3544e2 commit e0a9567

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

go/ssa/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func main() {
5757
//
5858
// Use ssautil.BuildPackage only if you have parsed--but not
5959
// type-checked--syntax trees. Typically, clients already have typed
60-
// syntax, perhaps obtained from from golang.org/x/tools/go/packages.
60+
// syntax, perhaps obtained from golang.org/x/tools/go/packages.
6161
// In that case, see the other examples for simpler approaches.
6262
func Example_buildPackage() {
6363
// Replace interface{} with any for this test.

gopls/internal/golang/rename.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ func renameExported(pkgs []*cache.Package, declPkgPath PackagePath, declObjPath
587587
// TODO(adonovan): methods requires dynamic
588588
// programming of the product targets x
589589
// packages as any package might add a new
590-
// target (from a foward dep) as a
590+
// target (from a forward dep) as a
591591
// consequence, and any target might imply a
592592
// new set of rdeps. See golang/go#58461.
593593
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ This test verifies that gopls can remove unused parameters from methods.
22

33
Specifically, check
44
1. basic removal of unused parameters, when the receiver is named, locally and
5-
accross package boundaries
5+
across package boundaries
66
2. handling of unnamed receivers
77

88
-- go.mod --

gopls/internal/test/marker/testdata/diagnostics/stdversion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Test of "too new" diagnostics from the stdversion analyzer.
22

33
This test references go1.21 symbols from std, but the analyzer itself
4-
depends on the the go1.22 behavior of versions.FileVersion.
4+
depends on the go1.22 behavior of versions.FileVersion.
55

66
See also go/analysis/passes/stdversion/testdata/test.txtar,
77
which runs the same test in the analysistest framework.

internal/refactor/inline/inline_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ func runTests(t *testing.T, tests []testcase) {
12851285
// Want error?
12861286
if rest := strings.TrimPrefix(test.want, "error: "); rest != test.want {
12871287
if err == nil {
1288-
t.Fatalf("unexpected sucess: want error matching %q", rest)
1288+
t.Fatalf("unexpected success: want error matching %q", rest)
12891289
}
12901290
msg := err.Error()
12911291
if ok, err := regexp.MatchString(rest, msg); err != nil {

0 commit comments

Comments
 (0)