structs.go
changeset 31 1dc47df5c99f
parent 28 78961db80bae
child 32 4e68d8f89dc3
--- a/structs.go	Thu Dec 29 11:11:18 2011 -0700
+++ b/structs.go	Thu Dec 29 11:17:52 2011 -0700
@@ -40,12 +40,11 @@
 var _ fmt.Stringer = &stream{}
 
 // <stream:error>
-// BUG(cjyar) Can this be consolidated with Error? Hide it if not.
-type StreamError struct {
+type streamError struct {
 	Any Generic
 	Text *errText
 }
-var _ xml.Marshaler = &StreamError{}
+var _ xml.Marshaler = &streamError{}
 
 type errText struct {
 	Lang string `xml:"attr"`
@@ -222,7 +221,7 @@
 	return s, nil
 }
 
-func (s *StreamError) MarshalXML() ([]byte, os.Error) {
+func (s *streamError) MarshalXML() ([]byte, os.Error) {
 	buf := bytes.NewBuffer(nil)
 	buf.WriteString("<stream:error>")
 	xml.Marshal(buf, s.Any)