diff options
Diffstat (limited to 'src/cmd/doc/testdata/pkg.go')
| -rw-r--r-- | src/cmd/doc/testdata/pkg.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cmd/doc/testdata/pkg.go b/src/cmd/doc/testdata/pkg.go index bc069939f8..50105b5fcc 100644 --- a/src/cmd/doc/testdata/pkg.go +++ b/src/cmd/doc/testdata/pkg.go @@ -5,6 +5,8 @@ // Package comment. package pkg +import "io" + // Constants // Comment about exported constant. @@ -52,7 +54,9 @@ var ( ) // Comment about exported function. -func ExportedFunc(a int) bool +func ExportedFunc(a int) bool { + return true != false +} // Comment about internal function. func internalFunc(a int) bool @@ -73,7 +77,7 @@ type ExportedType struct { // Comment about exported method. func (ExportedType) ExportedMethod(a int) bool { - return true + return true != true } // Comment about unexported method. |
