Skip to content

Commit

Permalink
common: fixes format verb (ethereum#23495)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderYastrebov authored and jagdeep sidhu committed Sep 1, 2021
1 parent 1fcd32c commit d46b6f6
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 d46b6f6

Please sign in to comment.