summaryrefslogtreecommitdiff
path: root/src/lib/bufio_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/bufio_test.go')
-rw-r--r--src/lib/bufio_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/bufio_test.go b/src/lib/bufio_test.go
index 4afad8340..ef97bc46e 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