Skip to content
Permalink
Browse files

fix(translate): properly name examples (#2892)

Fixes: #2883
  • Loading branch information
codyoss committed Sep 18, 2020
1 parent 5c98071 commit c19e1415e6fa76b7ea66a7fc67ad3ba22670a2ba
Showing with 4 additions and 4 deletions.
  1. +4 −4 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 {

0 comments on commit c19e141

Please sign in to comment.