Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
d019e901
Unverified
Commit
d019e901
authored
Aug 31, 2021
by
Alexander Yastrebov
Committed by
GitHub
Aug 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common: fixes format verb (#23495)
parent
31be5d41
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
types.go
common/types.go
+2
-2
No files found.
common/types.go
View file @
d019e901
...
@@ -86,7 +86,7 @@ func (h Hash) String() string {
...
@@ -86,7 +86,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"
)
...
@@ -270,7 +270,7 @@ func (a Address) hex() []byte {
...
@@ -270,7 +270,7 @@ func (a Address) hex() []byte {
}
}
// Format implements fmt.Formatter.
// 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
)
{
func
(
a
Address
)
Format
(
s
fmt
.
State
,
c
rune
)
{
switch
c
{
switch
c
{
case
'v'
,
's'
:
case
'v'
,
's'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment