corrected method doc for xim.ID.MarshalText()
parent
7f8c0adf5d
commit
cd717c34c5
2
id.go
2
id.go
|
@ -84,7 +84,7 @@ func (receiver ID) String() string {
|
||||||
return serialized
|
return serialized
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalText makes xim.ID fit the encoding.TextMarshaler interface.
|
// MarshalText makes xim.ID fit the encoding.TextMarshaler interface.
|
||||||
func (receiver ID) MarshalText() (text []byte, err error) {
|
func (receiver ID) MarshalText() (text []byte, err error) {
|
||||||
if Nothing() == receiver {
|
if Nothing() == receiver {
|
||||||
return nil, errNothing
|
return nil, errNothing
|
||||||
|
|
Loading…
Reference in New Issue