diff options
| author | Russ Cox <rsc@golang.org> | 2009-04-06 21:14:38 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-04-06 21:14:38 -0700 |
| commit | b80fdd1e3beec5d70e3a7bd2bdf3bdd7153c38a3 (patch) | |
| tree | 11b2c9abd86388bca4645ea2e395082cb069828b /src/lib/bufio_test.go | |
| parent | 0ea0919534bc2d39f6fc7c62c92a1d40b7f58c1f (diff) | |
| download | go-b80fdd1e3beec5d70e3a7bd2bdf3bdd7153c38a3.tar.xz | |
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/bufio_test.go')
| -rw-r--r-- | src/lib/bufio_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/bufio_test.go b/src/lib/bufio_test.go index 4afad83404..ef97bc46ec 100644 --- a/src/lib/bufio_test.go +++ b/src/lib/bufio_test.go @@ -135,7 +135,7 @@ func readBytes(buf *BufRead) string { nb++; } // BUG return string(b[0:nb]) ? - return string(b)[0:nb] + return string(b[0:nb]) } // Call Read to accumulate the text of a file |
