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
4c9d84f0
Commit
4c9d84f0
authored
Sep 04, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update fmt, refl, and rpc to exploit bug fixes in compiler
R=gri OCL=14806 CL=14806
parent
6c72bfa5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fmt.go
src/lib/fmt.go
+3
-3
No files found.
src/lib/fmt.go
View file @
4c9d84f0
...
...
@@ -112,14 +112,14 @@ func (f *Fmt) pad(s string) {
if
w
>
NByte
{
w
=
NByte
;
}
var
buf
[
NByte
]
byte
;
// BUG: should be able to allocate variable size
buf
:=
new
([]
byte
,
w
);
for
i
:=
0
;
i
<
w
;
i
++
{
buf
[
i
]
=
' '
;
}
if
left
{
s
=
string
(
buf
)
[
0
:
w
]
+
s
;
s
=
string
(
buf
)
+
s
;
}
else
{
s
=
s
+
string
(
buf
)
[
0
:
w
]
;
s
=
s
+
string
(
buf
);
}
}
}
...
...
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