mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
common: fixes format verb (#23495)
This commit is contained in:
parent
fb17f56852
commit
4db72a0548
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ func (h Hash) String() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format implements fmt.Formatter.
|
// 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) {
|
func (h Hash) Format(s fmt.State, c rune) {
|
||||||
hexb := make([]byte, 2+len(h)*2)
|
hexb := make([]byte, 2+len(h)*2)
|
||||||
copy(hexb, "0x")
|
copy(hexb, "0x")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue