diff options
| author | cui fliter <imcusg@gmail.com> | 2023-08-15 23:07:18 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-08-16 02:08:40 +0000 |
| commit | 16ec27b47c4c103ddcdd46888e1b5175cc574d7a (patch) | |
| tree | e1b8f71b9bc6136637d6f28f76ab1ef029aa1c59 /src/errors/example_test.go | |
| parent | 850b6ce33ced3d20d036cb41317f783469f3ea86 (diff) | |
| download | go-16ec27b47c4c103ddcdd46888e1b5175cc574d7a.tar.xz | |
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>
Diffstat (limited to 'src/errors/example_test.go')
| -rw-r--r-- | src/errors/example_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
