diff options
author | cui fliter <imcusg@gmail.com> | 2024-02-29 16:09:31 +0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-03-04 15:54:40 +0000 |
commit | a5f8ae9f6566946529a51b69d2f3f0689abc00eb (patch) | |
tree | bddd04d00d90b136402e1fb55365fbca4a85ea95 /src/bytes | |
parent | 1f1fcc34736087db4d385abf26b4ec0ef64193a1 (diff) | |
download | go-a5f8ae9f6566946529a51b69d2f3f0689abc00eb.tar.gz go-a5f8ae9f6566946529a51b69d2f3f0689abc00eb.zip |
bytes: add a colon after Output to make the Example in the document display correctly
The document address currently showing the problem is: https://pkg.go.dev/bytes#Buffer.ReadByte
Change-Id: Ib52747e38f72541f3ca2a595aa8eca5d91281c80
Reviewed-on: https://go-review.googlesource.com/c/go/+/568135
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Run-TryBot: shuang cui <imcusg@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/bytes')
-rw-r--r-- | src/bytes/example_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bytes/example_test.go b/src/bytes/example_test.go index 5a66b1e436..54df5f74e5 100644 --- a/src/bytes/example_test.go +++ b/src/bytes/example_test.go @@ -102,7 +102,7 @@ func ExampleBuffer_Read() { fmt.Println(n) fmt.Println(b.String()) fmt.Println(string(rdbuf)) - // Output + // Output: // 1 // bcde // a @@ -118,7 +118,7 @@ func ExampleBuffer_ReadByte() { } fmt.Println(c) fmt.Println(b.String()) - // Output + // Output: // 97 // bcde } |