Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(translate): properly name examples #2892

Merged
merged 2 commits into from Sep 18, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions translate/examples_test.go
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