Skip to content

Commit

Permalink
common: fixes format verb (#23495)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderYastrebov authored Aug 31, 2021
1 parent 31be5d4 commit d019e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (h Hash) String() string {
}

// Format implements fmt.Formatter.
// Hash supports the %v, %s, %v, %x, %X and %d format verbs.
// Hash supports the %v, %s, %q, %x, %X and %d format verbs.
func (h Hash) Format(s fmt.State, c rune) {
hexb := make([]byte, 2+len(h)*2)
copy(hexb, "0x")
Expand Down Expand Up @@ -270,7 +270,7 @@ func (a Address) hex() []byte {
}

// Format implements fmt.Formatter.
// Address supports the %v, %s, %v, %x, %X and %d format verbs.
// Address supports the %v, %s, %q, %x, %X and %d format verbs.
func (a Address) Format(s fmt.State, c rune) {
switch c {
case 'v', 's':
Expand Down

0 comments on commit d019e90

Please sign in to comment.