From: cui fliter Date: Thu, 29 Feb 2024 08:09:31 +0000 (+0800) Subject: bytes: add a colon after Output to make the Example in the document display correctly X-Git-Tag: go1.23rc1~1023 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a5f8ae9f6566946529a51b69d2f3f0689abc00eb;p=gostls13.git 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 LUCI-TryBot-Result: Go LUCI Run-TryBot: shuang cui TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor Reviewed-by: Bryan Mills --- 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 }