summaryrefslogtreecommitdiff
path: root/src/pkg/time
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-11-20 11:45:05 -0800
committerRuss Cox <rsc@golang.org>2009-11-20 11:45:05 -0800
commitc861f30835090bbd6b9b35a80667f26952843767 (patch)
tree645bd57ef3c9326ec02e646a751b9075d12a79e7 /src/pkg/time
parent7089e97992d5d6be520dfea787200061992526c8 (diff)
downloadgolang-c861f30835090bbd6b9b35a80667f26952843767.tar.gz
gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkg
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
Diffstat (limited to 'src/pkg/time')
-rw-r--r--src/pkg/time/zoneinfo.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/time/zoneinfo.go b/src/pkg/time/zoneinfo.go
index 4316bbd8b..40f8f0feb 100644
--- a/src/pkg/time/zoneinfo.go
+++ b/src/pkg/time/zoneinfo.go
@@ -34,7 +34,7 @@ func (d *data) read(n int) []byte {
return nil;
}
p := d.p[0:n];
- d.p = d.p[n:len(d.p)];
+ d.p = d.p[n:];
return p;
}
@@ -168,7 +168,7 @@ func parseinfo(bytes []byte) (zt []zonetime, ok bool) {
if b, ok = zonedata.byte(); !ok || int(b) >= len(abbrev) {
return nil, false
}
- z[i].name = byteString(abbrev[b:len(abbrev)]);
+ z[i].name = byteString(abbrev[b:]);
}
// Now the transition time info.
@@ -234,7 +234,7 @@ func lookupTimezone(sec int64) (zone string, offset int) {
if sec < int64(tz[m].time) {
tz = tz[0:m]
} else {
- tz = tz[m:len(tz)]
+ tz = tz[m:]
}
}
z := tz[0].zone;