1
0
mirror of https://github.com/golang/go synced 2024-11-26 17:56:55 -07:00

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 <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: shuang cui <imcusg@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
cui fliter 2023-08-15 23:07:18 +08:00 committed by Gopher Robot
parent 850b6ce33c
commit 16ec27b47c

View File

@ -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
}