diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-03 02:17:34 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-03 02:17:34 +0000 |
commit | 2fd401c8f190f1fe43e51a7f726f6ed6119a1f96 (patch) | |
tree | 7f76eff391f37fe6467ff4ffbc0c582c9959ea30 /libgo/go/html/token.go | |
parent | 02e9018f1616b23f1276151797216717b3564202 (diff) | |
download | gcc-2fd401c8f190f1fe43e51a7f726f6ed6119a1f96.tar.gz |
libgo: Update to weekly.2011-11-02.
From-SVN: r181964
Diffstat (limited to 'libgo/go/html/token.go')
-rw-r--r-- | libgo/go/html/token.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libgo/go/html/token.go b/libgo/go/html/token.go index 952d17468bd..c5b8a1c710e 100644 --- a/libgo/go/html/token.go +++ b/libgo/go/html/token.go @@ -7,7 +7,6 @@ package html import ( "bytes" "io" - "os" "strconv" "strings" ) @@ -127,7 +126,7 @@ type Tokenizer struct { // Next call would set z.err to os.EOF but return a TextToken, and all // subsequent Next calls would return an ErrorToken. // err is never reset. Once it becomes non-nil, it stays non-nil. - err os.Error + err error // buf[raw.start:raw.end] holds the raw bytes of the current token. // buf[raw.end:] is buffered input that will yield future tokens. raw span @@ -152,7 +151,7 @@ type Tokenizer struct { // Error returns the error associated with the most recent ErrorToken token. // This is typically os.EOF, meaning the end of tokenization. -func (z *Tokenizer) Error() os.Error { +func (z *Tokenizer) Error() error { if z.tt != ErrorToken { return nil } |