aboutsummaryrefslogtreecommitdiff
path: root/src/time/format.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/format.go')
-rw-r--r--src/time/format.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/format.go b/src/time/format.go
index c8cb9c65bc..cab78f73a0 100644
--- a/src/time/format.go
+++ b/src/time/format.go
@@ -405,7 +405,7 @@ func match(s1, s2 string) bool {
func lookup(tab []string, val string) (int, string, error) {
for i, v := range tab {
- if len(val) >= len(v) && match(val[0:len(v)], v) {
+ if len(val) >= len(v) && match(val[:len(v)], v) {
return i, val[len(v):], nil
}
}