From: cui fliter Date: Tue, 15 Aug 2023 15:07:18 +0000 (+0800) Subject: errors: add a colon after Output to make the Example in the document display correctly X-Git-Tag: go1.22rc1~1277 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=16ec27b47c4c103ddcdd46888e1b5175cc574d7a;p=gostls13.git errors: add a colon after Output to make the Example in the document display correctly Change-Id: Iaa1751c6ac0df9d5b2cb74efb16996f4eaea0503 Reviewed-on: https://go-review.googlesource.com/c/go/+/519236 Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Run-TryBot: shuang cui Run-TryBot: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov --- diff --git a/src/errors/example_test.go b/src/errors/example_test.go index beb5edcd2f..1976f05afa 100644 --- a/src/errors/example_test.go +++ b/src/errors/example_test.go @@ -105,7 +105,7 @@ func ExampleUnwrap() { err2 := fmt.Errorf("error2: [%w]", err1) fmt.Println(err2) fmt.Println(errors.Unwrap(err2)) - // Output + // Output: // error2: [error1] // error1 }