diff --git a/collate/sort_test.go b/collate/sort_test.go index d9e7f31c..4bbb227f 100644 --- a/collate/sort_test.go +++ b/collate/sort_test.go @@ -12,7 +12,7 @@ import ( "golang.org/x/text/language" ) -func ExampleCollator_Strings() { +func ExampleCollator_strings() { c := collate.New(language.Und) strings := []string{ "ad", diff --git a/encoding/example_test.go b/encoding/example_test.go index 4f923530..2ec15801 100644 --- a/encoding/example_test.go +++ b/encoding/example_test.go @@ -16,7 +16,7 @@ import ( "golang.org/x/text/transform" ) -func ExampleDecodeWindows1252() { +func Example_decodeWindows1252() { sr := strings.NewReader("Gar\xe7on !") tr := charmap.Windows1252.NewDecoder().Reader(sr) io.Copy(os.Stdout, tr) diff --git a/feature/plural/example_test.go b/feature/plural/example_test.go index c75408c0..ea9dcc48 100644 --- a/feature/plural/example_test.go +++ b/feature/plural/example_test.go @@ -10,7 +10,7 @@ import ( "golang.org/x/text/message" ) -func ExampleSelect() { +func ExampleSelectf() { // Manually set some translations. This is typically done programmatically. message.Set(language.English, "%d files remaining", plural.Selectf(1, "%d",