]> Cypherpunks repositories - gostls13.git/commitdiff
errors: add a colon after Output to make the Example in the document display correctly
authorcui fliter <imcusg@gmail.com>
Tue, 15 Aug 2023 15:07:18 +0000 (23:07 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 16 Aug 2023 02:08:40 +0000 (02:08 +0000)
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>
src/errors/example_test.go

index beb5edcd2fc31a6d2bf55efa426be08870ca9062..1976f05afa7e9fbeac0639a63f6170331c11e176 100644 (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
 }