diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2016-07-09 14:51:00 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2016-08-16 14:36:32 +0000 |
| commit | 302dd7b71eb565c5460966292e434fc903362cb6 (patch) | |
| tree | 3e36b3b29d6fd65f0cd060142aa338720412f6f4 /src/crypto/cipher/example_test.go | |
| parent | 6d2db0986faef807e8538db6f3d32adb0dfd78c5 (diff) | |
| download | go-302dd7b71eb565c5460966292e434fc903362cb6.tar.xz | |
crypto/cipher, math/big: fix example names
Fixes (legit) vet warnings.
Fix some verb tenses while we're here.
Updates #11041
Change-Id: I27e995f55b38f4cf584e97a67b8545e8247e83d6
Reviewed-on: https://go-review.googlesource.com/27122
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Diffstat (limited to 'src/crypto/cipher/example_test.go')
| -rw-r--r-- | src/crypto/cipher/example_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/cipher/example_test.go b/src/crypto/cipher/example_test.go index 9abe782bca..956cc2eaca 100644 --- a/src/crypto/cipher/example_test.go +++ b/src/crypto/cipher/example_test.go @@ -14,7 +14,7 @@ import ( "os" ) -func ExampleNewGCMEncrypter() { +func ExampleNewGCM_encrypt() { // The key argument should be the AES key, either 16 or 32 bytes // to select AES-128 or AES-256. key := []byte("AES256Key-32Characters1234567890") @@ -40,7 +40,7 @@ func ExampleNewGCMEncrypter() { fmt.Printf("%x\n", ciphertext) } -func ExampleNewGCMDecrypter() { +func ExampleNewGCM_decrypt() { // The key argument should be the AES key, either 16 or 32 bytes // to select AES-128 or AES-256. key := []byte("AES256Key-32Characters1234567890") |
