summaryrefslogtreecommitdiffstats
path: root/libgo/go/strings
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-07 01:11:29 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-07 01:11:29 +0000
commit8388e3abaaaa0546c5f1c87a68e583958063cde9 (patch)
tree84f27a6ab44d932e4b0455f18390b070b4de626e /libgo/go/strings
parentbc461ec935abe0c6f3e92be027143b4f25b5682f (diff)
downloadppe42-gcc-8388e3abaaaa0546c5f1c87a68e583958063cde9.tar.gz
ppe42-gcc-8388e3abaaaa0546c5f1c87a68e583958063cde9.zip
libgo: Update to weekly 2011-11-09.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182073 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/strings')
-rw-r--r--libgo/go/strings/reader.go4
-rw-r--r--libgo/go/strings/strings.go2
-rw-r--r--libgo/go/strings/strings_test.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/libgo/go/strings/reader.go b/libgo/go/strings/reader.go
index ac8d9dcdf8e..8ff851f36a8 100644
--- a/libgo/go/strings/reader.go
+++ b/libgo/go/strings/reader.go
@@ -7,7 +7,7 @@ package strings
import (
"errors"
"io"
- "utf8"
+ "unicode/utf8"
)
// A Reader implements the io.Reader, io.ByteScanner, and
@@ -58,7 +58,7 @@ func (r *Reader) UnreadByte() error {
// ReadRune reads and returns the next UTF-8-encoded
// Unicode code point from the buffer.
-// If no bytes are available, the error returned is os.EOF.
+// If no bytes are available, the error returned is io.EOF.
// If the bytes are an erroneous UTF-8 encoding, it
// consumes one byte and returns U+FFFD, 1.
func (r *Reader) ReadRune() (ch rune, size int, err error) {
diff --git a/libgo/go/strings/strings.go b/libgo/go/strings/strings.go
index 4f6e8a6fe3e..b4d920714ac 100644
--- a/libgo/go/strings/strings.go
+++ b/libgo/go/strings/strings.go
@@ -7,7 +7,7 @@ package strings
import (
"unicode"
- "utf8"
+ "unicode/utf8"
)
// explode splits s into an array of UTF-8 sequences, one per Unicode character (still strings) up to a maximum of n (n < 0 means no limit).
diff --git a/libgo/go/strings/strings_test.go b/libgo/go/strings/strings_test.go
index 2cf4bdec13a..304d69a19d7 100644
--- a/libgo/go/strings/strings_test.go
+++ b/libgo/go/strings/strings_test.go
@@ -12,8 +12,8 @@ import (
. "strings"
"testing"
"unicode"
+ "unicode/utf8"
"unsafe"
- "utf8"
)
func eq(a, b []string) bool {
OpenPOWER on IntegriCloud