Skip to content

Commit

Permalink
fix(translate): properly name examples (#2892)
Browse files Browse the repository at this point in the history
Fixes: #2883
  • Loading branch information
codyoss authored Sep 18, 2020
1 parent 5c98071 commit c19e141
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions translate/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -36,7 +36,7 @@ func Example_NewClient() {
}
}

func Example_Translate() {
func ExampleClient_Translate() {
ctx := context.Background()
client, err := translate.NewClient(ctx)
if err != nil {
Expand All @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit c19e141

Please sign in to comment.