summaryrefslogtreecommitdiff
path: root/src/lib/fmt
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-04-06 21:14:38 -0700
committerRuss Cox <rsc@golang.org>2009-04-06 21:14:38 -0700
commit71a88a79ac75ccaca1986af7d3616563cbb2f74f (patch)
tree11b2c9abd86388bca4645ea2e395082cb069828b /src/lib/fmt
parent33580b7ee07748cc7e5a8c0d28ed6e8340a92475 (diff)
downloadgolang-71a88a79ac75ccaca1986af7d3616563cbb2f74f.tar.gz
an early 6g limitation forced the use of
string(b)[0:n] instead of the more direct string(b[0:n]). convert to the more direct form. R=r DELTA=5 (0 added, 0 deleted, 5 changed) OCL=27082 CL=27140
Diffstat (limited to 'src/lib/fmt')
-rw-r--r--src/lib/fmt/format.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/fmt/format.go b/src/lib/fmt/format.go
index 14c5043ac..ce5050371 100644
--- a/src/lib/fmt/format.go
+++ b/src/lib/fmt/format.go
@@ -222,7 +222,7 @@ func (f *Fmt) integer(a int64, base uint, is_signed bool, digits *string) string
buf[i] = ' ';
i--;
}
- return string(buf)[i+1:nByte];
+ return string(buf[i+1:nByte]);
}
// Fmt_d64 formats an int64 in decimal.