]> Cypherpunks repositories - gostls13.git/commitdiff
bytes,strings: use a more universal Cyrillic word
authorOleksandr Redko <oleksandr.red+github@gmail.com>
Tue, 6 Aug 2024 17:16:42 +0000 (20:16 +0300)
committerGopher Robot <gobot@golang.org>
Wed, 7 Aug 2024 17:22:36 +0000 (17:22 +0000)
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>
src/bytes/example_test.go
src/strings/example_test.go

index 1cc0089e41f3132461a3114255d7f4cb3063de7a..c9086d391809d4e3300d7acf26ab86830f1a7eac 100644 (file)
@@ -502,10 +502,10 @@ func ExampleTitle() {
 
 func ExampleToTitle() {
        fmt.Printf("%s\n", bytes.ToTitle([]byte("loud noises")))
-       fmt.Printf("%s\n", bytes.ToTitle([]byte("хлеб")))
+       fmt.Printf("%s\n", bytes.ToTitle([]byte("брат")))
        // Output:
        // LOUD NOISES
-       // Ð¥Ð\9bÐ\95Ð\91
+       // Ð\91РÐ\90Т
 }
 
 func ExampleToTitleSpecial() {
index bdab7ae8dea9d638c7ba07c5a74db2a364b32f64..413d1bf997403015fbc6a2068b9b0584667a28f6 100644 (file)
@@ -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
-       // Ð¥Ð»ÐµÐ±
+       // Ð\91Ñ\80аÑ\82
 }
 
 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
-       // Ð¥Ð\9bÐ\95Ð\91
+       // Ð\91РÐ\90Т
 }
 
 func ExampleToTitleSpecial() {