Skip to content

Commit

Permalink
Fix function comments based on best practices from Effective Go
Browse files Browse the repository at this point in the history
Signed-off-by: CodeLingo Bot <[email protected]>
  • Loading branch information
CodeLingoBot authored and jacobsa committed Mar 17, 2019
1 parent d95898c commit 9f44e2d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion testing/cmac.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (c CmacTestCase) String() string {
return fmt.Sprintf("AES-CMAC(%x, %x) = %x", c.Key, c.Msg, c.Mac)
}

// CmacTestCases returns test cases for AES-CMAC.
// CmacCases returns test cases for AES-CMAC.
func CmacCases() []CmacTestCase {
// Find the source package.
pkg, err := build.Import(
Expand Down
2 changes: 1 addition & 1 deletion testing/dbl.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (c DblTestCase) String() string {
return fmt.Sprintf("Dbl(%x) = %x", c.Input, c.Output)
}

// DblTestCases returns test cases for dbl.
// DblCases returns test cases for dbl.
func DblCases() []DblTestCase {
// Find the source package.
pkg, err := build.Import(
Expand Down
2 changes: 1 addition & 1 deletion testing/encrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (c EncryptTestCase) String() string {
c.Output)
}

// EncryptTestCases returns test cases for Encrypt.
// EncryptCases returns test cases for Encrypt.
func EncryptCases() []EncryptTestCase {
// Find the source package.
pkg, err := build.Import(
Expand Down
2 changes: 1 addition & 1 deletion testing/hex.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"strings"
)

// Decode a hex string that may contain spaces, as used in test vectors in
// FromRfcHex decodes a hex string that may contain spaces, as used in test vectors in
// RFCs. Panic if the input is illegal.
func FromRfcHex(s string) []byte {
// Remove spaces.
Expand Down
2 changes: 1 addition & 1 deletion testing/s2v.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (c S2vTestCase) String() string {
return fmt.Sprintf("S2v(%x, %x) = %x", c.Key, c.Strings, c.Output)
}

// S2vTestCases returns test cases for S2V.
// S2vCases returns test cases for S2V.
func S2vCases() []S2vTestCase {
// Find the source package.
pkg, err := build.Import(
Expand Down

0 comments on commit 9f44e2d

Please sign in to comment.