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
0a5508c6
Commit
0a5508c6
authored
Dec 06, 2011
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
various: we don't cast, we convert
R=golang-dev, dsymonds CC=golang-dev
https://golang.org/cl/5437142
parent
ca7d86c4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
bit_reader.go
src/pkg/compress/bzip2/bit_reader.go
+1
-1
session_test.go
src/pkg/exp/ssh/session_test.go
+1
-1
doc.go
src/pkg/fmt/doc.go
+1
-1
graphic.go
src/pkg/unicode/graphic.go
+2
-2
No files found.
src/pkg/compress/bzip2/bit_reader.go
View file @
0a5508c6
...
...
@@ -20,7 +20,7 @@ type bitReader struct {
err
error
}
// bitReader needs to read bytes from an io.Reader. We attempt to c
as
t the
// bitReader needs to read bytes from an io.Reader. We attempt to c
onver
t the
// given io.Reader to this interface and, if it doesn't already fit, we wrap in
// a bufio.Reader.
type
byteReader
interface
{
...
...
src/pkg/exp/ssh/session_test.go
View file @
0a5508c6
...
...
@@ -61,7 +61,7 @@ func dial(t *testing.T) *ClientConn {
WantReply
bool
Status
uint32
}
// TODO(dfc) c
as
ting to the concrete type should not be
// TODO(dfc) c
onver
ting to the concrete type should not be
// necessary to send a packet.
msg
:=
exitMsg
{
PeersId
:
ch
.
(
*
channel
)
.
theirId
,
...
...
src/pkg/fmt/doc.go
View file @
0a5508c6
...
...
@@ -103,7 +103,7 @@
To avoid recursion in cases such as
type X string
func (x X) String() string { return Sprintf("<%s>", x) }
c
as
t the value before recurring:
c
onver
t the value before recurring:
func (x X) String() string { return Sprintf("<%s>", string(x)) }
Format errors:
...
...
src/pkg/unicode/graphic.go
View file @
0a5508c6
...
...
@@ -32,8 +32,8 @@ var PrintRanges = []*RangeTable{
// Such characters include letters, marks, numbers, punctuation, symbols, and
// spaces, from categories L, M, N, P, S, Zs.
func
IsGraphic
(
r
rune
)
bool
{
// We c
as
t to uint32 to avoid the extra test for negative,
// and in the index we c
as
t to uint8 to avoid the range check.
// We c
onver
t to uint32 to avoid the extra test for negative,
// and in the index we c
onver
t to uint8 to avoid the range check.
if
uint32
(
r
)
<=
MaxLatin1
{
return
properties
[
uint8
(
r
)]
&
pg
!=
0
}
...
...
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