aboutsummaryrefslogtreecommitdiff
path: root/src/fmt
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2019-03-26 07:16:53 +1100
committerRob Pike <r@golang.org>2019-03-25 21:03:10 +0000
commit50fe9461eb551d3df340c36fb3f24f9faf461422 (patch)
treec926b24046d15610bb96a0d24e9af283a17ee32d /src/fmt
parentdb16de920370892b0241d3fa0617dddff2417a4d (diff)
downloadgo-50fe9461eb551d3df340c36fb3f24f9faf461422.tar.gz
go-50fe9461eb551d3df340c36fb3f24f9faf461422.zip
fmt: fix spelling mistake in example
Mea culpa. Beat Takeshi, sumimasen. Fixes #31023. Change-Id: Ie2f27a5867724a8a1b8c3082c3389c8fd6d1dee7 Reviewed-on: https://go-review.googlesource.com/c/go/+/168861 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/fmt')
-rw-r--r--src/fmt/example_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fmt/example_test.go b/src/fmt/example_test.go
index 56ce47f836..5962834226 100644
--- a/src/fmt/example_test.go
+++ b/src/fmt/example_test.go
@@ -321,13 +321,13 @@ func Example_formats() {
// Result: &{Kim 22} 0x010203 // See comment above.
// Arrays and slices are formatted by applying the format to each element.
- greats := [5]string{"Katano", "Kobayashi", "Kurosawa", "Miyazaki", "Ozu"}
+ greats := [5]string{"Kitano", "Kobayashi", "Kurosawa", "Miyazaki", "Ozu"}
fmt.Printf("%v %q\n", greats, greats)
- // Result: [Katano Kobayashi Kurosawa Miyazaki Ozu] ["Katano" "Kobayashi" "Kurosawa" "Miyazaki" "Ozu"]
+ // Result: [Kitano Kobayashi Kurosawa Miyazaki Ozu] ["Kitano" "Kobayashi" "Kurosawa" "Miyazaki" "Ozu"]
kGreats := greats[:3]
fmt.Printf("%v %q %#v\n", kGreats, kGreats, kGreats)
- // Result: [Katano Kobayashi Kurosawa] ["Katano" "Kobayashi" "Kurosawa"] []string{"Katano", "Kobayashi", "Kurosawa"}
+ // Result: [Kitano Kobayashi Kurosawa] ["Kitano" "Kobayashi" "Kurosawa"] []string{"Kitano", "Kobayashi", "Kurosawa"}
// Byte slices are special. Integer verbs like %d print the elements in
// that format. The %s and %q forms treat the slice like a string. The %x
@@ -358,8 +358,8 @@ func Example_formats() {
// map[dachshund:false peanut:true] map[string]bool{"dachshund":false, "peanut":true}
// {Kim 22} {Name:Kim Age:22} struct { Name string; Age int }{Name:"Kim", Age:22}
// &{Kim 22} 0x0
- // [Katano Kobayashi Kurosawa Miyazaki Ozu] ["Katano" "Kobayashi" "Kurosawa" "Miyazaki" "Ozu"]
- // [Katano Kobayashi Kurosawa] ["Katano" "Kobayashi" "Kurosawa"] []string{"Katano", "Kobayashi", "Kurosawa"}
+ // [Kitano Kobayashi Kurosawa Miyazaki Ozu] ["Kitano" "Kobayashi" "Kurosawa" "Miyazaki" "Ozu"]
+ // [Kitano Kobayashi Kurosawa] ["Kitano" "Kobayashi" "Kurosawa"] []string{"Kitano", "Kobayashi", "Kurosawa"}
// [97 226 140 152] [97 226 140 152] a⌘ "a⌘" 61e28c98 61 e2 8c 98
// 1973-11-29 21:33:09 +0000 UTC "1973-11-29 21:33:09 +0000 UTC"
}