File tree 3 files changed +3
-3
lines changed
cmd/compile/internal/types2/testdata/examples
go/types/testdata/examples
runtime/testdata/testprogcgo 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ func (t T1[[ /* ERROR must be an identifier */ ]int]) m2() {}
35
35
// style. In m3 below, int is the name of the local receiver type parameter
36
36
// and it shadows the predeclared identifier int which then cannot be used
37
37
// 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
39
39
// and usually should be avoided. There are some notable exceptions; e.g.,
40
40
// sometimes it makes sense to use the identifier "copy" which happens to
41
41
// also be the name of a predeclared built-in function.
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ func (t T1[[ /* ERROR must be an identifier */ ]int]) m2() {}
35
35
// style. In m3 below, int is the name of the local receiver type parameter
36
36
// and it shadows the predeclared identifier int which then cannot be used
37
37
// 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
39
39
// and usually should be avoided. There are some notable exceptions; e.g.,
40
40
// sometimes it makes sense to use the identifier "copy" which happens to
41
41
// also be the name of a predeclared built-in function.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ package main
10
10
// This is a regression test for issue 14599, where profiling fails when the
11
11
// function is the first C function. Exported functions are the first C
12
12
// 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
14
14
// ensure its function is first.
15
15
16
16
// extern void CallGoNop();
You can’t perform that action at this time.
0 commit comments