diff options
Diffstat (limited to 'libgo/go/html/escape.go')
-rw-r--r-- | libgo/go/html/escape.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libgo/go/html/escape.go b/libgo/go/html/escape.go index 69e0028..b8e6571 100644 --- a/libgo/go/html/escape.go +++ b/libgo/go/html/escape.go @@ -6,7 +6,6 @@ package html import ( "bytes" - "os" "strings" "utf8" ) @@ -195,7 +194,7 @@ func lower(b []byte) []byte { const escapedChars = `&'<>"` -func escape(w writer, s string) os.Error { +func escape(w writer, s string) error { i := strings.IndexAny(s, escapedChars) for i != -1 { if _, err := w.WriteString(s[:i]); err != nil { |