gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkg

R=r, gri
CC=golang-dev
https://golang.org/cl/156115
This commit is contained in:
Russ Cox 2009-11-20 11:45:05 -08:00
parent aa4c638b7b
commit 9ac4449cb2
118 changed files with 308 additions and 308 deletions

View file

@ -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
}