mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Merge pull request #2712 from guo-sj/correct_comments
This commit is contained in:
commit
e1d3dd5e18
|
@ -51,7 +51,7 @@ type Prefix struct {
|
||||||
set bool
|
set bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalXML - decodes XML data.
|
// MarshalXML encodes Prefix field into an XML form.
|
||||||
func (p Prefix) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
|
func (p Prefix) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
|
||||||
if !p.set {
|
if !p.set {
|
||||||
return nil
|
return nil
|
||||||
|
@ -59,6 +59,7 @@ func (p Prefix) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error
|
||||||
return e.EncodeElement(p.string, startElement)
|
return e.EncodeElement(p.string, startElement)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MarshalXML encodes Filter field into an XML form.
|
||||||
func (f Filter) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
func (f Filter) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||||
if err := e.EncodeToken(start); err != nil {
|
if err := e.EncodeToken(start); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue