Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
318b67cb
Commit
318b67cb
authored
Jul 31, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make %v and %p consistent
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=32591 CL=32593
parent
d1a3b98a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
print.go
src/pkg/fmt/print.go
+1
-1
No files found.
src/pkg/fmt/print.go
View file @
318b67cb
...
@@ -434,7 +434,7 @@ func (p *pp) printField(field reflect.Value) (was_string bool) {
...
@@ -434,7 +434,7 @@ func (p *pp) printField(field reflect.Value) (was_string bool) {
break
;
break
;
}
}
p
.
fmt
.
sharp
=
!
p
.
fmt
.
sharp
;
// turn 0x on by default
p
.
fmt
.
sharp
=
!
p
.
fmt
.
sharp
;
// turn 0x on by default
s
=
p
.
fmt
.
Fmt_u
X
64
(
uint64
(
v
))
.
Str
();
s
=
p
.
fmt
.
Fmt_u
x
64
(
uint64
(
v
))
.
Str
();
case
reflect
.
ArrayOrSliceValue
:
case
reflect
.
ArrayOrSliceValue
:
p
.
addstr
(
"["
);
p
.
addstr
(
"["
);
for
i
:=
0
;
i
<
f
.
Len
();
i
++
{
for
i
:=
0
;
i
<
f
.
Len
();
i
++
{
...
...
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