Skip to content

Commit 0261fa6

Browse files
hopehookgopherbot
authored andcommitted
testdata: fix typo in comment
Change-Id: If3d5884d9f3f32606c510af5597529b832a8f4a9 Reviewed-on: https://go-review.googlesource.com/c/go/+/386934 Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Trust: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]>
1 parent 903e7cc commit 0261fa6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cmd/compile/internal/types2/testdata/examples/methods.go2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (t T1[[ /* ERROR must be an identifier */ ]int]) m2() {}
3535
// style. In m3 below, int is the name of the local receiver type parameter
3636
// and it shadows the predeclared identifier int which then cannot be used
3737
// anymore as expected.
38-
// This is no different from locally redelaring a predeclared identifier
38+
// This is no different from locally re-declaring a predeclared identifier
3939
// and usually should be avoided. There are some notable exceptions; e.g.,
4040
// sometimes it makes sense to use the identifier "copy" which happens to
4141
// also be the name of a predeclared built-in function.

src/go/types/testdata/examples/methods.go2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (t T1[[ /* ERROR must be an identifier */ ]int]) m2() {}
3535
// style. In m3 below, int is the name of the local receiver type parameter
3636
// and it shadows the predeclared identifier int which then cannot be used
3737
// anymore as expected.
38-
// This is no different from locally redelaring a predeclared identifier
38+
// This is no different from locally re-declaring a predeclared identifier
3939
// and usually should be avoided. There are some notable exceptions; e.g.,
4040
// sometimes it makes sense to use the identifier "copy" which happens to
4141
// also be the name of a predeclared built-in function.

src/runtime/testdata/testprogcgo/aprof.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ package main
1010
// This is a regression test for issue 14599, where profiling fails when the
1111
// function is the first C function. Exported functions are the first C
1212
// functions, so we use an exported function. Exported functions are created in
13-
// lexigraphical order of source files, so this file is named aprof.go to
13+
// lexicographical order of source files, so this file is named aprof.go to
1414
// ensure its function is first.
1515

1616
// extern void CallGoNop();

0 commit comments

Comments
 (0)