mirror of
https://github.com/golang/go.git
synced 2025-11-07 12:11:00 +00:00
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
This commit is contained in:
parent
0ea0919534
commit
b80fdd1e3b
4 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue