]> Cypherpunks repositories - gostls13.git/commitdiff
bytes: add a colon after Output to make the Example in the document display correctly
authorcui fliter <imcusg@gmail.com>
Thu, 29 Feb 2024 08:09:31 +0000 (16:09 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 4 Mar 2024 15:54:40 +0000 (15:54 +0000)
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>
src/bytes/example_test.go

index 5a66b1e43695948fbad95d555181a57c52bcaf68..54df5f74e5fb4a56cb6f2a1690b701ea8017f032 100644 (file)
@@ -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
 }