aboutsummaryrefslogtreecommitdiff
path: root/src/testing/example.go
diff options
context:
space:
mode:
authorvovapi <evgrafov.vladimir@gmail.com>2019-12-10 10:34:34 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2019-12-10 21:11:20 +0000
commit207a0b79336a470810b4ffcd72756240097cf93d (patch)
tree7f350f6741aa3065e57a19284798bfc64e62f679 /src/testing/example.go
parent5e35845a4aedd86d51a6b189bbcac688af446ce3 (diff)
downloadgo-207a0b79336a470810b4ffcd72756240097cf93d.tar.xz
testing: use conventional comments for exported internal funcs & structs
Change-Id: I2dd5ddc22bfff143b81d5945992d8c5fccf387f4 GitHub-Last-Rev: aa637756e772f5ee9094b802df3be9945c8466c4 GitHub-Pull-Request: golang/go#36054 Reviewed-on: https://go-review.googlesource.com/c/go/+/210497 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/testing/example.go')
-rw-r--r--src/testing/example.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/example.go b/src/testing/example.go
index c122121289..adc91d5faf 100644
--- a/src/testing/example.go
+++ b/src/testing/example.go
@@ -19,8 +19,8 @@ type InternalExample struct {
Unordered bool
}
-// An internal function but exported because it is cross-package; part of the implementation
-// of the "go test" command.
+// RunExamples is an internal function but exported because it is cross-package;
+// it is part of the implementation of the "go test" command.
func RunExamples(matchString func(pat, str string) (bool, error), examples []InternalExample) (ok bool) {
_, ok = runExamples(matchString, examples)
return ok