mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkg
R=r, gri CC=golang-dev https://golang.org/cl/156115
This commit is contained in:
parent
aa4c638b7b
commit
9ac4449cb2
118 changed files with 308 additions and 308 deletions
|
|
@ -153,7 +153,7 @@ func itod(i uint) string {
|
|||
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 @@ func itox(i uint) string {
|
|||
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 @@ L: for j < IPv6len {
|
|||
// Not enough room.
|
||||
return nil
|
||||
}
|
||||
p4 := parseIPv4(s[i:len(s)]);
|
||||
p4 := parseIPv4(s[i:]);
|
||||
if p4 == nil {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue