aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/testing
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2013-11-27 01:05:38 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-11-27 01:05:38 +0000
commit815ca4d336e254a4869946343460afc8ff6b21c7 (patch)
treea639e5c4b06bb7971b24112a25fdae25a1b3d863 /libgo/go/testing
parent40a373f1d56a77524d9047ab66176b9d2a82cb57 (diff)
downloadgcc-815ca4d336e254a4869946343460afc8ff6b21c7.zip
gcc-815ca4d336e254a4869946343460afc8ff6b21c7.tar.gz
gcc-815ca4d336e254a4869946343460afc8ff6b21c7.tar.bz2
libgo: Update to current Go library.
From-SVN: r205426
Diffstat (limited to 'libgo/go/testing')
-rw-r--r--libgo/go/testing/testing.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/libgo/go/testing/testing.go b/libgo/go/testing/testing.go
index 5019e07..52dc166 100644
--- a/libgo/go/testing/testing.go
+++ b/libgo/go/testing/testing.go
@@ -73,17 +73,19 @@
//
// Example functions without output comments are compiled but not executed.
//
-// The naming convention to declare examples for a function F, a type T and
+// The naming convention to declare examples for the package, a function F, a type T and
// method M on type T are:
//
+// func Example() { ... }
// func ExampleF() { ... }
// func ExampleT() { ... }
// func ExampleT_M() { ... }
//
-// Multiple example functions for a type/function/method may be provided by
+// Multiple example functions for a package/type/function/method may be provided by
// appending a distinct suffix to the name. The suffix must start with a
// lower-case letter.
//
+// func Example_suffix() { ... }
// func ExampleF_suffix() { ... }
// func ExampleT_suffix() { ... }
// func ExampleT_M_suffix() { ... }