Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(737)

Unified Diff: src/pkg/net/ip.go

Issue 156115: code review 156115: gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkg (Closed)
Patch Set: code review 156115: gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkg Created 15 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/net/fd_freebsd.go ('k') | src/pkg/net/ipsock.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/net/ip.go
===================================================================
--- a/src/pkg/net/ip.go
+++ b/src/pkg/net/ip.go
@@ -153,7 +153,7 @@
b[bp] = byte(i%10) + '0';
}
- return string(b[bp:len(b)]);
+ return string(b[bp:]);
}
// Convert i to hexadecimal string.
@@ -170,7 +170,7 @@
b[bp] = "0123456789abcdef"[byte(i%16)];
}
- return string(b[bp:len(b)]);
+ return string(b[bp:]);
}
// String returns the string form of the IP address ip.
@@ -342,7 +342,7 @@
// Not enough room.
return nil
}
- p4 := parseIPv4(s[i:len(s)]);
+ p4 := parseIPv4(s[i:]);
if p4 == nil {
return nil
}
« no previous file with comments | « src/pkg/net/fd_freebsd.go ('k') | src/pkg/net/ipsock.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b