chore: fix typo in the result.go (#2558)

This commit is contained in:
mstmdev 2023-04-25 23:06:09 +08:00 committed by GitHub
parent b8c7317cc6
commit 8b2bcd5a85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ func NewBoolSliceResult(val []bool, err error) *BoolSliceCmd {
return &cmd return &cmd
} }
// NewStringStringMapResult returns a StringStringMapCmd initialised with val and err for testing. // NewMapStringStringResult returns a MapStringStringCmd initialised with val and err for testing.
func NewMapStringStringResult(val map[string]string, err error) *MapStringStringCmd { func NewMapStringStringResult(val map[string]string, err error) *MapStringStringCmd {
var cmd MapStringStringCmd var cmd MapStringStringCmd
cmd.val = val cmd.val = val
@ -114,7 +114,7 @@ func NewZSliceCmdResult(val []Z, err error) *ZSliceCmd {
return &cmd return &cmd
} }
// NewZWithKeyCmdResult returns a NewZWithKeyCmd initialised with val and err for testing. // NewZWithKeyCmdResult returns a ZWithKeyCmd initialised with val and err for testing.
func NewZWithKeyCmdResult(val *ZWithKey, err error) *ZWithKeyCmd { func NewZWithKeyCmdResult(val *ZWithKey, err error) *ZWithKeyCmd {
var cmd ZWithKeyCmd var cmd ZWithKeyCmd
cmd.val = val cmd.val = val