]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/hex: fix example function name
authorJosh Bleecher Snyder <josharian@gmail.com>
Sat, 10 Sep 2016 21:05:51 +0000 (14:05 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sat, 10 Sep 2016 21:40:16 +0000 (21:40 +0000)
Found by vet.

Change-Id: I556d87f853a734002f779b04ba5a3588a3117106
Reviewed-on: https://go-review.googlesource.com/28958
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/encoding/hex/example_test.go

index 2cf756ce12d036c85e9dfec8d8a489537839524d..3580757a541d6188764515ac9401cbc91a8221c6 100644 (file)
@@ -38,7 +38,7 @@ func ExampleDecode() {
        // Hello Gopher!
 }
 
-func ExampleDecodedString() {
+func ExampleDecodeString() {
        const s = "48656c6c6f20476f7068657221"
        decoded, err := hex.DecodeString(s)
        if err != nil {