aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSameer Ajmani <sameer@golang.org>2014-09-19 15:59:47 -0400
committerSameer Ajmani <sameer@golang.org>2014-09-19 15:59:47 -0400
commit0e1a07167b2ba0e71487feea8e2e20a2e29fdf3a (patch)
tree5485dfeca31bdba032cd923d0704f106b651f4c0 /src
parent2c15d45131bbad55c710427a2ea5a1b383e9811c (diff)
downloadgo-0e1a07167b2ba0e71487feea8e2e20a2e29fdf3a.tar.xz
cmd/go: fix typo
LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/138700043
Diffstat (limited to 'src')
-rw-r--r--src/cmd/go/test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go
index e990b17bfa..c135b89c84 100644
--- a/src/cmd/go/test.go
+++ b/src/cmd/go/test.go
@@ -49,7 +49,7 @@ It prints a summary of the test results in the format:
followed by detailed output for each failed package.
'Go test' recompiles each package along with any files with names matching
-the file pattern "*_test.go".
+the file pattern "*_test.go".
Files whose names begin with "_" (including "_test.go") or "." are ignored.
These additional files can contain test functions, benchmark functions, and
example functions. See 'go help testfunc' for more.
@@ -1059,7 +1059,7 @@ func (b *builder) notest(a *action) error {
return nil
}
-// isTestMain tells whether fn is a TestMain(m *testing.Main) function.
+// isTestMain tells whether fn is a TestMain(m *testing.M) function.
func isTestMain(fn *ast.FuncDecl) bool {
if fn.Name.String() != "TestMain" ||
fn.Type.Results != nil && len(fn.Type.Results.List) > 0 ||