Skip to content

Commit d019e90

Browse files
common: fixes format verb (ethereum#23495)
1 parent 31be5d4 commit d019e90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (h Hash) String() string {
8686
}
8787

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

272272
// Format implements fmt.Formatter.
273-
// Address supports the %v, %s, %v, %x, %X and %d format verbs.
273+
// Address supports the %v, %s, %q, %x, %X and %d format verbs.
274274
func (a Address) Format(s fmt.State, c rune) {
275275
switch c {
276276
case 'v', 's':

0 commit comments

Comments
 (0)