]> Cypherpunks repositories - gostls13.git/commitdiff
testdata: fix typo in comment
authorhopehook <hopehook@qq.com>
Sat, 19 Feb 2022 04:33:16 +0000 (12:33 +0800)
committerGopher Robot <gobot@golang.org>
Sat, 19 Feb 2022 16:23:54 +0000 (16:23 +0000)
Change-Id: If3d5884d9f3f32606c510af5597529b832a8f4a9
Reviewed-on: https://go-review.googlesource.com/c/go/+/386934
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>

src/cmd/compile/internal/types2/testdata/examples/methods.go2
src/go/types/testdata/examples/methods.go2
src/runtime/testdata/testprogcgo/aprof.go

index 1d76d553dcc44a1b57f2f983edefa404c39ab534..a46f789d602ce584f5ccd0b1b072d3b00321c8c1 100644 (file)
@@ -35,7 +35,7 @@ func (t T1[[ /* ERROR must be an identifier */ ]int]) m2() {}
 // style. In m3 below, int is the name of the local receiver type parameter
 // and it shadows the predeclared identifier int which then cannot be used
 // anymore as expected.
-// This is no different from locally redelaring a predeclared identifier
+// This is no different from locally re-declaring a predeclared identifier
 // and usually should be avoided. There are some notable exceptions; e.g.,
 // sometimes it makes sense to use the identifier "copy" which happens to
 // also be the name of a predeclared built-in function.
index 1d76d553dcc44a1b57f2f983edefa404c39ab534..a46f789d602ce584f5ccd0b1b072d3b00321c8c1 100644 (file)
@@ -35,7 +35,7 @@ func (t T1[[ /* ERROR must be an identifier */ ]int]) m2() {}
 // style. In m3 below, int is the name of the local receiver type parameter
 // and it shadows the predeclared identifier int which then cannot be used
 // anymore as expected.
-// This is no different from locally redelaring a predeclared identifier
+// This is no different from locally re-declaring a predeclared identifier
 // and usually should be avoided. There are some notable exceptions; e.g.,
 // sometimes it makes sense to use the identifier "copy" which happens to
 // also be the name of a predeclared built-in function.
index c70d6333bbff9008a47797981f3b1a5d3a513354..16870144dda01437c4049f867d4861b655ba63a2 100644 (file)
@@ -10,7 +10,7 @@ package main
 // This is a regression test for issue 14599, where profiling fails when the
 // function is the first C function. Exported functions are the first C
 // functions, so we use an exported function. Exported functions are created in
-// lexigraphical order of source files, so this file is named aprof.go to
+// lexicographical order of source files, so this file is named aprof.go to
 // ensure its function is first.
 
 // extern void CallGoNop();