diff options
| author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2024-08-06 20:16:42 +0300 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-08-07 17:22:36 +0000 |
| commit | 5a81570bf2dfd7698d8ae6b3f9f3addd4161d453 (patch) | |
| tree | 50b91dc3c6d9a4d107d0a58ccb74afa50641adac /src/strings/example_test.go | |
| parent | b97971ea2edbc29798e8a29a5e270698987a7f1d (diff) | |
| download | go-5a81570bf2dfd7698d8ae6b3f9f3addd4161d453.tar.xz | |
bytes,strings: use a more universal Cyrillic word
The word "брат" (brother) is the same across Slavic languages that
use the Cyrillic script, such as Bulgarian, Macedonian, Russian,
Ukrainian, and others.
Change-Id: I5155e6bb16a02dec5d93a01b79f9570f43f09444
Reviewed-on: https://go-review.googlesource.com/c/go/+/603535
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/strings/example_test.go')
| -rw-r--r-- | src/strings/example_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/strings/example_test.go b/src/strings/example_test.go index bdab7ae8de..413d1bf997 100644 --- a/src/strings/example_test.go +++ b/src/strings/example_test.go @@ -328,22 +328,22 @@ func ExampleTitle() { // Compare this example to the ToTitle example. fmt.Println(strings.Title("her royal highness")) fmt.Println(strings.Title("loud noises")) - fmt.Println(strings.Title("хлеб")) + fmt.Println(strings.Title("брат")) // Output: // Her Royal Highness // Loud Noises - // Хлеб + // Брат } func ExampleToTitle() { // Compare this example to the Title example. fmt.Println(strings.ToTitle("her royal highness")) fmt.Println(strings.ToTitle("loud noises")) - fmt.Println(strings.ToTitle("хлеб")) + fmt.Println(strings.ToTitle("брат")) // Output: // HER ROYAL HIGHNESS // LOUD NOISES - // ХЛЕБ + // БРАТ } func ExampleToTitleSpecial() { |
