From c19e1415e6fa76b7ea66a7fc67ad3ba22670a2ba Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Fri, 18 Sep 2020 11:50:04 -0600 Subject: [PATCH] fix(translate): properly name examples (#2892) Fixes: #2883 --- translate/examples_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/translate/examples_test.go b/translate/examples_test.go index 2e96b068ea5..81b490bbea9 100644 --- a/translate/examples_test.go +++ b/translate/examples_test.go @@ -22,7 +22,7 @@ import ( "golang.org/x/text/language" ) -func Example_NewClient() { +func ExampleNewClient() { ctx := context.Background() client, err := translate.NewClient(ctx) if err != nil { @@ -36,7 +36,7 @@ func Example_NewClient() { } } -func Example_Translate() { +func ExampleClient_Translate() { ctx := context.Background() client, err := translate.NewClient(ctx) if err != nil { @@ -54,7 +54,7 @@ func Example_Translate() { fmt.Println(translations[0].Text) } -func Example_DetectLanguage() { +func ExampleClient_DetectLanguage() { ctx := context.Background() client, err := translate.NewClient(ctx) if err != nil { @@ -67,7 +67,7 @@ func Example_DetectLanguage() { fmt.Println(ds) } -func Example_SupportedLanguages() { +func ExampleClient_SupportedLanguages() { ctx := context.Background() client, err := translate.NewClient(ctx) if err != nil {